Merge pull request #5684 from thaJeztah/gofumpt_go_version

Makefile: use go1.22 semantics for gofumpt
This commit is contained in:
Sebastiaan van Stijn 2024-12-18 13:41:08 +01:00 committed by GitHub
commit 2f67b2f3ff
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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