Merge pull request #8523 from guggero/linter-use-cache
make: use Golang build and module cache for linter
This commit is contained in:
1 file changed
+5
-1
@@ -63,7 +63,11 @@ ifneq ($(workers),)
|
|||||||
LINT_WORKERS = --concurrency=$(workers)
|
LINT_WORKERS = --concurrency=$(workers)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
DOCKER_TOOLS = docker run --rm -v $$(pwd):/build lnd-tools
|
DOCKER_TOOLS = docker run \
|
||||||
|
--rm \
|
||||||
|
-v $(shell bash -c "go env GOCACHE || (mkdir -p /tmp/go-cache; echo /tmp/go-cache)"):/tmp/build/.cache \
|
||||||
|
-v $(shell bash -c "go env GOMODCACHE || (mkdir -p /tmp/go-modcache; echo /tmp/go-modcache)"):/tmp/build/.modcache \
|
||||||
|
-v $$(pwd):/build lnd-tools
|
||||||
|
|
||||||
GREEN := "\\033[0;32m"
|
GREEN := "\\033[0;32m"
|
||||||
NC := "\\033[0m"
|
NC := "\\033[0m"
|
||||||
|
|||||||
Reference in new issue
Block a user