Merge pull request #5684 from thaJeztah/gofumpt_go_version
Makefile: use go1.22 semantics for gofumpt
This commit is contained in:
commit
2f67b2f3ff
2
Makefile
2
Makefile
@ -52,7 +52,7 @@ shellcheck: ## run shellcheck validation
|
|||||||
.PHONY: fmt
|
.PHONY: fmt
|
||||||
fmt: ## run gofumpt (if present) or gofmt
|
fmt: ## run gofumpt (if present) or gofmt
|
||||||
@if command -v gofumpt > /dev/null; then \
|
@if command -v gofumpt > /dev/null; then \
|
||||||
gofumpt -w -d -lang=1.21 . ; \
|
gofumpt -w -d -lang=1.23 . ; \
|
||||||
else \
|
else \
|
||||||
go list -f {{.Dir}} ./... | xargs gofmt -w -s -d ; \
|
go list -f {{.Dir}} ./... | xargs gofmt -w -s -d ; \
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user