Skip to content

Commit

Permalink
make: add linter cache
Browse files Browse the repository at this point in the history
  • Loading branch information
guggero committed Jul 12, 2024
1 parent d3ab662 commit 0f49470
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,12 @@ ifneq ($(sys),)
BUILD_SYSTEM = $(sys)
endif

DOCKER_TOOLS = docker run -v $$(pwd):/build chantools-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 $(shell bash -c "mkdir -p /tmp/go-lint-cache; echo /tmp/go-lint-cache"):/root/.cache/golangci-lint \
-v $$(pwd):/build chantools-tools

TEST_FLAGS = -test.timeout=20m

Expand Down

0 comments on commit 0f49470

Please sign in to comment.