mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-03-04 09:48:19 +01:00
make: use Golang build and module cache for linter
This commit gives the linter container access to the local machine's build and module cache, drastically decreasing the run time of subsequent linter runs (no difference on first run with this change).
This commit is contained in:
parent
f61761277f
commit
834371c995
1 changed files with 5 additions and 1 deletions
6
Makefile
6
Makefile
|
@ -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"
|
||||||
|
|
Loading…
Add table
Reference in a new issue