From f61db3f2c14fa1f02ab54d4ecccaae84fcb19d3f Mon Sep 17 00:00:00 2001 From: Michael Kriese Date: Tue, 3 Dec 2024 22:25:45 +0100 Subject: [PATCH] build: use go from goroot for fmt --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 8cf06a20e8..b0277b95d5 100644 --- a/Makefile +++ b/Makefile @@ -337,7 +337,7 @@ clean: .PHONY: fmt fmt: - @GOFUMPT_PACKAGE=$(GOFUMPT_PACKAGE) $(GO) run build/code-batch-process.go gitea-fmt -w '{file-list}' + @GOFUMPT_PACKAGE=$(GOFUMPT_PACKAGE) $(shell $(GO) env GOROOT) run build/code-batch-process.go gitea-fmt -w '{file-list}' $(eval TEMPLATES := $(shell find templates -type f -name '*.tmpl')) @# strip whitespace after '{{' or '(' and before '}}' or ')' unless there is only @# whitespace before it