Skip to content

Commit

Permalink
fix: add go get -d sigs.k8s.io/controller-tools/cmd/controller-gen@v0…
Browse files Browse the repository at this point in the history
….4.1

to update go.mod and download source code needed to build packages.
  • Loading branch information
kasia-kujawa committed Feb 16, 2022
1 parent 9c8b8fe commit 284322a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion operator/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected] ;\
go get -d sigs.k8s.io/controller-tools/cmd/[email protected] ;\
go get sigs.k8s.io/controller-tools/cmd/[email protected] ;\
rm -rf $$CONTROLLER_GEN_TMP_DIR ;\
}
CONTROLLER_GEN=$(GOBIN)/controller-gen
Expand All @@ -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/[email protected] ;\
go get sigs.k8s.io/kustomize/kustomize/[email protected] ;\
rm -rf $$KUSTOMIZE_GEN_TMP_DIR ;\
}
Expand Down

0 comments on commit 284322a

Please sign in to comment.