Skip to content
This repository was archived by the owner on Aug 31, 2025. It is now read-only.

Commit 5c48fcc

Browse files
authored
improve script compatibility (#231)
1 parent 1e04a30 commit 5c48fcc

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

scripts/format.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ export DOCKERFILE_FORMAT
66

77
format:
88
echo "$$DOCKERFILE_FORMAT" | docker build -q . -f - -t temp
9-
docker run --rm -it -v $(PWD):/s -w /s temp \
9+
docker run --rm -it -v $(shell pwd):/s -w /s temp \
1010
sh -c "gofumpt -l -w ."

scripts/lint.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
lint:
2-
docker run --rm -v $(PWD):/app -w /app \
2+
docker run --rm -v $(shell pwd):/app -w /app \
33
$(LINT_IMAGE) \
44
golangci-lint run -v

scripts/mod-tidy.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
mod-tidy:
2-
docker run --rm -it -v $(PWD):/s -w /s $(BASE_IMAGE) \
2+
docker run --rm -it -v $(shell pwd):/s -w /s $(BASE_IMAGE) \
33
sh -c "apk add git && GOPROXY=direct go mod tidy"

scripts/msgs.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export DOCKERFILE_MSGS
1111
msgs:
1212
echo "$$DOCKERFILE_MSGS" | docker build -q . -f - -t temp
1313
docker run --rm -it \
14-
-v $(PWD):/s \
14+
-v $(shell pwd):/s \
1515
temp \
1616
sh -c "make msgs-nodocker"
1717

0 commit comments

Comments
 (0)