improve script compatibility (#677)

This commit is contained in:
Alessandro Ros
2025-01-10 17:30:07 +01:00
committed by GitHub
parent ab0c9891a8
commit c308cb3355
3 changed files with 3 additions and 3 deletions

View File

@@ -6,5 +6,5 @@ export DOCKERFILE_FORMAT
format:
echo "$$DOCKERFILE_FORMAT" | docker build -q . -f - -t temp
docker run --rm -it -v $(PWD):/s -w /s temp \
docker run --rm -it -v $(shell pwd):/s -w /s temp \
sh -c "gofumpt -l -w ."

View File

@@ -1,5 +1,5 @@
lint:
docker run --rm -v $(PWD):/app -w /app \
docker run --rm -v $(shell pwd):/app -w /app \
-e CGO_ENABLED=0 \
$(LINT_IMAGE) \
golangci-lint run -v

View File

@@ -1,3 +1,3 @@
mod-tidy:
docker run --rm -it -v $(PWD):/s -w /s $(BASE_IMAGE) \
docker run --rm -it -v $(shell pwd):/s -w /s $(BASE_IMAGE) \
sh -c "apk add git && GOPROXY=direct go mod tidy"