From ba34f220b9d30de93376b31c73cec67df47ad7a4 Mon Sep 17 00:00:00 2001 From: bitromortac Date: Fri, 26 Apr 2024 13:21:25 +0200 Subject: [PATCH] make: add cache directory for linter Mounts a local temporary folder to the linter docker container in order to persist the linter cache across runs. --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index 41fabbfcc..088bb4880 100644 --- a/Makefile +++ b/Makefile @@ -69,6 +69,7 @@ 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 $(shell bash -c "mkdir -p /tmp/go-lint-cache; echo /tmp/go-lint-cache"):/root/.cache/golangci-lint \ -v $$(pwd):/build lnd-tools GREEN := "\\033[0;32m"