mirror of
https://github.com/aler9/gortsplib
synced 2025-10-01 21:42:07 +08:00
improve script compatibility (#677)
This commit is contained in:
@@ -6,5 +6,5 @@ export DOCKERFILE_FORMAT
|
|||||||
|
|
||||||
format:
|
format:
|
||||||
echo "$$DOCKERFILE_FORMAT" | docker build -q . -f - -t temp
|
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 ."
|
sh -c "gofumpt -l -w ."
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
lint:
|
lint:
|
||||||
docker run --rm -v $(PWD):/app -w /app \
|
docker run --rm -v $(shell pwd):/app -w /app \
|
||||||
-e CGO_ENABLED=0 \
|
-e CGO_ENABLED=0 \
|
||||||
$(LINT_IMAGE) \
|
$(LINT_IMAGE) \
|
||||||
golangci-lint run -v
|
golangci-lint run -v
|
||||||
|
@@ -1,3 +1,3 @@
|
|||||||
mod-tidy:
|
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"
|
sh -c "apk add git && GOPROXY=direct go mod tidy"
|
||||||
|
Reference in New Issue
Block a user