From b8fd205178df996c32c9fbe1c1e7424d5195a063 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Wed, 11 Dec 2024 12:15:41 +0100 Subject: [PATCH] Makefile: use go1.22 semantics for gofumpt gofumpt defaults to using the go version from go.mod, but as we don't have one, we need to set it explicitly. Signed-off-by: Sebastiaan van Stijn --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 6b529faef0fb..c84ab9860364 100644 --- a/Makefile +++ b/Makefile @@ -52,7 +52,7 @@ shellcheck: ## run shellcheck validation .PHONY: fmt fmt: ## run gofumpt (if present) or gofmt @if command -v gofumpt > /dev/null; then \ - gofumpt -w -d -lang=1.21 . ; \ + gofumpt -w -d -lang=1.23 . ; \ else \ go list -f {{.Dir}} ./... | xargs gofmt -w -s -d ; \ fi