Skip to content
This repository was archived by the owner on Jul 18, 2025. It is now read-only.

Commit 1d60519

Browse files
committed
Speed up linting using volume
Using the `cached` flag roughly halves the time taken to lint. Signed-off-by: Christopher Crone <[email protected]>
1 parent eaabaac commit 1d60519

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ test check: lint unit-test e2e-test
5252
lint:
5353
@echo "Linting..."
5454
@tar -c Dockerfile.lint gometalinter.json | docker build -t $(IMAGE_NAME)-lint $(IMAGE_BUILD_ARGS) -f Dockerfile.lint - --target=lint-volume > /dev/null
55-
@docker run --rm -v $(dir $(realpath $(lastword $(MAKEFILE_LIST)))):/go/src/$(PKG_NAME):ro $(IMAGE_NAME)-lint
55+
@docker run --rm -v $(dir $(realpath $(lastword $(MAKEFILE_LIST)))):/go/src/$(PKG_NAME):ro,cached $(IMAGE_NAME)-lint
5656

5757
e2e-test:
5858
@echo "Running e2e tests..."

0 commit comments

Comments
 (0)