mirror of https://github.com/docker/cli.git
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 <github@gone.nl>
This commit is contained in:
parent
26526f9970
commit
b8fd205178
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…
Reference in New Issue