Skip to content

Commit

Permalink
fix: deprecation of 'go get' for installing modules (kubeflow#7177)
Browse files Browse the repository at this point in the history
Co-authored-by: esacif <esacif@gmail.com>
  • Loading branch information
一条肥鱼 and esacif authored Jul 20, 2023
1 parent 2e615a4 commit bdbef50
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 20 deletions.
6 changes: 1 addition & 5 deletions components/admission-webhook/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,7 @@ PROJECT_DIR := $(shell dirname $(abspath $(lastword $(MAKEFILE_LIST))))
define go-get-tool
@[ -f $(1) ] || { \
set -e ;\
TMP_DIR=$$(mktemp -d) ;\
cd $$TMP_DIR ;\
go mod init tmp ;\
echo "Downloading $(2)" ;\
GOBIN=$(PROJECT_DIR)/bin go get $(2) ;\
rm -rf $$TMP_DIR ;\
GOBIN=$(PROJECT_DIR)/bin go install $(2) ;\
}
endef
6 changes: 1 addition & 5 deletions components/notebook-controller/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -153,11 +153,7 @@ PROJECT_DIR := $(shell dirname $(abspath $(lastword $(MAKEFILE_LIST))))
define go-get-tool
@[ -f $(1) ] || { \
set -e ;\
TMP_DIR=$$(mktemp -d) ;\
cd $$TMP_DIR ;\
go mod init tmp ;\
echo "Downloading $(2)" ;\
GOBIN=$(PROJECT_DIR)/bin go get $(2) ;\
rm -rf $$TMP_DIR ;\
GOBIN=$(PROJECT_DIR)/bin go install $(2) ;\
}
endef
6 changes: 1 addition & 5 deletions components/pvcviewer-controller/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -162,11 +162,7 @@ PROJECT_DIR := $(shell dirname $(abspath $(lastword $(MAKEFILE_LIST))))
define go-get-tool
@[ -f $(1) ] || { \
set -e ;\
TMP_DIR=$$(mktemp -d) ;\
cd $$TMP_DIR ;\
go mod init tmp ;\
echo "Downloading $(2)" ;\
GOBIN=$(PROJECT_DIR)/bin go get $(2) ;\
rm -rf $$TMP_DIR ;\
GOBIN=$(PROJECT_DIR)/bin go install $(2) ;\
}
endef
6 changes: 1 addition & 5 deletions components/tensorboard-controller/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -132,11 +132,7 @@ PROJECT_DIR := $(shell dirname $(abspath $(lastword $(MAKEFILE_LIST))))
define go-get-tool
@[ -f $(1) ] || { \
set -e ;\
TMP_DIR=$$(mktemp -d) ;\
cd $$TMP_DIR ;\
go mod init tmp ;\
echo "Downloading $(2)" ;\
GOBIN=$(PROJECT_DIR)/bin go get $(2) ;\
rm -rf $$TMP_DIR ;\
GOBIN=$(PROJECT_DIR)/bin go install $(2) ;\
}
endef

0 comments on commit bdbef50

Please sign in to comment.