Skip to content

Commit

Permalink
improve script compatibility (#210)
Browse files Browse the repository at this point in the history
  • Loading branch information
aler9 authored Jan 10, 2025
1 parent e9dce86 commit 8ef8263
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion scripts/format.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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 ."
2 changes: 1 addition & 1 deletion scripts/lint.mk
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion scripts/mod-tidy.mk
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit 8ef8263

Please sign in to comment.