From 284322a83d64299438ab228782bc91a86ad7175f Mon Sep 17 00:00:00 2001 From: Katarzyna Kujawa Date: Wed, 16 Feb 2022 16:59:28 +0100 Subject: [PATCH] fix: add go get -d sigs.k8s.io/controller-tools/cmd/controller-gen@v0.4.1 to update go.mod and download source code needed to build packages. --- operator/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/operator/Makefile b/operator/Makefile index 36ff4643..7b4bb5f3 100755 --- a/operator/Makefile +++ b/operator/Makefile @@ -181,7 +181,8 @@ ifeq (, $(shell which controller-gen)) CONTROLLER_GEN_TMP_DIR=$$(mktemp -d) ;\ cd $$CONTROLLER_GEN_TMP_DIR ;\ go mod init tmp ;\ - go get sigs.k8s.io/controller-tools/cmd/controller-gen@v0.4.1 ;\ + go get -d sigs.k8s.io/controller-tools/cmd/controller-gen@v0.8.0 ;\ + go get sigs.k8s.io/controller-tools/cmd/controller-gen@v0.8.0 ;\ rm -rf $$CONTROLLER_GEN_TMP_DIR ;\ } CONTROLLER_GEN=$(GOBIN)/controller-gen @@ -196,6 +197,7 @@ ifeq (, $(shell which kustomize)) KUSTOMIZE_GEN_TMP_DIR=$$(mktemp -d) ;\ cd $$KUSTOMIZE_GEN_TMP_DIR ;\ go mod init tmp ;\ + go get -d sigs.k8s.io/kustomize/kustomize/v3@v3.8.3 ;\ go get sigs.k8s.io/kustomize/kustomize/v3@v3.8.3 ;\ rm -rf $$KUSTOMIZE_GEN_TMP_DIR ;\ }