format imports (#6041)

This commit is contained in:
Alessandro Ros
2026-08-04 22:13:15 +00:00
committed by GitHub
parent a65bdc1c5a
commit a4ad182e4e
137 changed files with 279 additions and 151 deletions
+3 -9
View File
@@ -1,9 +1,3 @@
define DOCKERFILE_FORMAT
FROM $(BASE_IMAGE)
RUN go install mvdan.cc/gofumpt@v0.5.0
endef
export DOCKERFILE_FORMAT
define DOCKERFILE_PRETTIER
FROM $(NODE_IMAGE)
RUN yarn global add prettier@3.6.2
@@ -11,9 +5,9 @@ endef
export DOCKERFILE_PRETTIER
format-go:
echo "$$DOCKERFILE_FORMAT" | docker build -q . -f - -t temp
docker run --rm -it -v "$(shell pwd):/s" -w /s temp \
sh -c "gofumpt -l -w ."
docker run --rm -v "$(shell pwd):/app" -w /app \
$(GOLANGCI_LINT_IMAGE) \
golangci-lint fmt
format-other:
echo "$$DOCKERFILE_PRETTIER" | docker build . -f - -t temp