improve script compatibility (#170)

This commit is contained in:
Alessandro Ros
2025-01-10 17:30:15 +01:00
committed by GitHub
parent 8cbc174822
commit a9da8230c9
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,4 +1,4 @@
lint:
docker run --rm -v $(PWD):/app -w /app \
docker run --rm -v $(shell pwd):/app -w /app \
$(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"