diff --git a/Makefile b/Makefile index fe8997b2..23a23575 100644 --- a/Makefile +++ b/Makefile @@ -5,6 +5,8 @@ SPHINXENV=.sphinx/venv/bin/activate .PHONY: default default: + go env -w GOCACHE=$(shell go env GOCACHE) + $(shell go env | grep -v GOENV | sed "s/'//g" > $(shell go env GOENV)) gofmt -s -w . go install -v ./... @echo "distrobuilder built successfully" @@ -16,7 +18,7 @@ update-gomod: .PHONY: check check: default - go test -v ./... + sudo GOENV=$(shell go env GOENV) go test -v ./... .PHONY: dist dist: