make: add linter cache

pull/146/head
Oliver Gugger 3 months ago
parent d3ab662418
commit 0f494706a3
No known key found for this signature in database
GPG Key ID: 8E4256593F177720

@ -35,7 +35,12 @@ ifneq ($(sys),)
BUILD_SYSTEM = $(sys) BUILD_SYSTEM = $(sys)
endif 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 TEST_FLAGS = -test.timeout=20m

Loading…
Cancel
Save