diff --git a/Makefile b/Makefile index 5e019dbc7..f297f80bc 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,5 @@ GO_PROJECT_NAME := hive +GOFLAGS ?= -mod=readonly # Where to install Go tools GOBIN ?= $(shell go env GOBIN) @@ -73,4 +74,4 @@ security: $(GOVULNCHECK) $(GOSECCHECK) $(GOSTATICCHECK) go vet ./... 2>&1 | tee tests/govet-report.txt || true @echo "Go vet report saved to tests/govet-report.txt" -.PHONY: go_build go_run build run test clean \ No newline at end of file +.PHONY: go_build go_run build run test clean