Skip to content

Commit 6e4fb28

Browse files
committed
lint+make: update reference commit, add linter cache
This speeds up any subsequent linter runs significantly, once the cache is populated. Example: First run (to fill the cache): 15 seconds. Second run (with populated cache): 900 milli-seconds.
1 parent 5facd99 commit 6e4fb28

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.golangci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,4 +72,4 @@ issues:
7272
- unused
7373
- deadcode
7474
- varcheck
75-
new-from-rev: c723abd3c9db8a6a2f3f1eaa85ce5aefb52c8170
75+
new-from-rev: 002f4ac35f343797e0a1a07a505c65a94d9dd4b3

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ endif
5656
DOCKER_TOOLS = docker run \
5757
-v $(shell bash -c "go env GOCACHE || (mkdir -p /tmp/go-cache; echo /tmp/go-cache)"):/tmp/build/.cache \
5858
-v $(shell bash -c "go env GOMODCACHE || (mkdir -p /tmp/go-modcache; echo /tmp/go-modcache)"):/tmp/build/.modcache \
59+
-v $(shell bash -c "mkdir -p /tmp/go-lint-cache; echo /tmp/go-lint-cache"):/root/.cache/golangci-lint \
5960
-v $$(pwd):/build taproot-assets-tools
6061

6162
GO_VERSION = 1.22.12

0 commit comments

Comments
 (0)