diff --git a/Makefile b/Makefile index 44b95012d4..96141a20ff 100644 --- a/Makefile +++ b/Makefile @@ -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 \