diff --git a/Makefile b/Makefile index 98a563c3..f5201c90 100644 --- a/Makefile +++ b/Makefile @@ -90,7 +90,7 @@ fmt: ## Run go fmt against code. go fmt ./... vet: ## Run go vet against code. - go vet $(BUILDFLAGS) ./... + GOOS=$(GOOS) GOARCH=$(GOARCH) CGO_ENABLED=0 go vet $(BUILDFLAGS) ./... test: manifests generate fmt vet envtest ## Run tests. KUBEBUILDER_ASSETS="$(shell $(ENVTEST) use $(ENVTEST_K8S_VERSION) -p path)" go test ./... -coverprofile cover.out