File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -4,8 +4,8 @@ PROJECT_DIR := $(shell dirname $(abspath $(lastword $(MAKEFILE_LIST))))
44# ENVTEST_K8S_VERSION refers to the version of kubebuilder assets to be downloaded by envtest binary.
55ENVTEST_K8S_VERSION = 1.33.2
66
7- ENVTEST = go run ${PROJECT_DIR}/vendor/sigs.k8s.io/controller-runtime/tools/setup-envtest
8- GOLANGCI_LINT = go run ${PROJECT_DIR}/vendor/github.com/golangci/golangci-lint/cmd/golangci-lint
7+ ENVTEST = GOWORK=off go run ${PROJECT_DIR}/vendor/sigs.k8s.io/controller-runtime/tools/setup-envtest
8+ GOLANGCI_LINT = GOWORK=off go run ${PROJECT_DIR}/vendor/github.com/golangci/golangci-lint/cmd/golangci-lint
99
1010HOME ?= /tmp/kubebuilder-testing
1111ifeq ($(HOME ) , /)
@@ -29,7 +29,7 @@ build: operator migration manifests-gen
2929.PHONY : manifests-gen
3030manifests-gen :
3131 # building manifests-gen
32- cd manifests-gen && go build -o ../bin/manifests-gen && cd ..
32+ cd manifests-gen && GOWORK=off go build -o ../bin/manifests-gen && cd ..
3333
3434operator :
3535 # building cluster-capi-operator
Original file line number Diff line number Diff line change 3434
3535# Print the command we are going to run as Make would.
3636echo ${GINKGO} ${GINKGO_ARGS} ${GINKGO_EXTRA_ARGS} ${TEST_DIRS}
37+ export GOWORK=off
3738${GINKGO} ${GINKGO_ARGS} ${GINKGO_EXTRA_ARGS} ${TEST_DIRS}
3839# Capture the test result to exit on error after coverage.
3940TEST_RESULT=$?
You can’t perform that action at this time.
0 commit comments