1
0
mirror of https://github.com/containers/podman.git synced 2026-02-05 06:45:31 +01:00

Add cache volumes for validatepr builds

This speeds up the build a lot (10x), the second time.

Also add --init, so that it is possible to cancel it.

Signed-off-by: Anders F Björklund <anders.f.bjorklund@gmail.com>
This commit is contained in:
Anders F Björklund
2026-01-27 17:00:50 +01:00
parent d1ebf848a8
commit 5f19b25aaf

View File

@@ -332,8 +332,12 @@ validate: validate-source validate-binaries
# image in the future.
.PHONY: validatepr
validatepr: ## Go Format and lint, which all code changes must pass
$(PODMANCMD) run --rm \
$(PODMANCMD) run --rm --init --tmpfs /tmp \
-v $(CURDIR):/go/src/github.com/containers/podman \
-v validatepr-gocache:/root/.cache/go-build \
-v validatepr-gomodcache:/root/go/pkg/mod \
-v validatepr-lintcache:/root/.cache/golangci-lint \
-v validatepr-precommitcache:/root/.cache/pre-commit \
--security-opt label=disable \
--network=host \
-it \