This is an automated email from the ASF dual-hosted git repository. astefanutti pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel-k.git
commit ffb305859ac6ce1298da6ae21909d0aa0007e513 Author: Antonin Stefanutti <anto...@stefanutti.fr> AuthorDate: Thu Jan 5 14:38:28 2023 +0100 fix: Use go install controller-gen --- script/Makefile | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/script/Makefile b/script/Makefile index f454eba96..6cd07a512 100644 --- a/script/Makefile +++ b/script/Makefile @@ -506,14 +506,7 @@ get-staging-repo: # find or download controller-gen if necessary controller-gen: ifeq (, $(shell command -v controller-gen 2> /dev/null)) - @{ \ - set -e ;\ - 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@$(CONTROLLER_GEN_VERSION) ;\ - rm -rf $$CONTROLLER_GEN_TMP_DIR ;\ - } + go install sigs.k8s.io/controller-tools/cmd/controller-gen@$(CONTROLLER_GEN_VERSION) CONTROLLER_GEN=$(GOBIN)/controller-gen else CONTROLLER_GEN=$(shell command -v controller-gen 2> /dev/null)