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 7143f11c9a81d61a9fe7d1b27ceeebdf2e7fd0ea Author: Antonin Stefanutti <anto...@stefanutti.fr> AuthorDate: Thu Jan 5 13:12:14 2023 +0100 fix: Use go install Kustomize --- script/Makefile | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/script/Makefile b/script/Makefile index 358d91025..30dad605d 100644 --- a/script/Makefile +++ b/script/Makefile @@ -526,14 +526,7 @@ endif kustomize: ifeq (, $(shell command -v kustomize 2> /dev/null)) - @{ \ - set -e ;\ - KUSTOMIZE_GEN_TMP_DIR=$$(mktemp -d) ;\ - cd $$KUSTOMIZE_GEN_TMP_DIR ;\ - go mod init tmp ;\ - go get sigs.k8s.io/kustomize/kustomize/v4@$(KUSTOMIZE_VERSION) ;\ - rm -rf $$KUSTOMIZE_GEN_TMP_DIR ;\ - } + go install sigs.k8s.io/kustomize/kustomize/v4@$(KUSTOMIZE_VERSION) KUSTOMIZE=$(GOBIN)/kustomize else KUSTOMIZE=$(shell command -v kustomize 2> /dev/null)