Remove run-in-gopath.sh

This commit is contained in:
Tim Hockin
2023-12-29 10:33:54 -08:00
parent b32e207256
commit f9ca58efe9
2 changed files with 0 additions and 46 deletions

View File

@@ -561,9 +561,6 @@ EOF
kube::golang::old::setup_env() {
kube::golang::verify_go_version
# Set up GOPATH. We have tools which depend on being in a GOPATH (see
# hack/run-in-gopath.sh).
#
# Even in module mode, we need to set GOPATH for `go build` and `go install`
# to work. We build various tools (usually via `go install`) from a lot of
# scripts.
@@ -577,9 +574,6 @@ kube::golang::old::setup_env() {
# Instead we set it to a phony local path and process the results ourselves.
# In particular, GOPATH[0]/bin will be used for `go install`, with
# cross-compiles adding an extra directory under that.
#
# Eventually, when we no longer rely on run-in-gopath.sh we may be able to
# simplify this some.
local go_pkg_dir="${KUBE_GOPATH}/src/${KUBE_GO_PACKAGE}"
local go_pkg_basedir
go_pkg_basedir=$(dirname "${go_pkg_dir}")
@@ -634,9 +628,6 @@ kube::golang::old::setup_env() {
kube::golang::new::setup_env() {
kube::golang::verify_go_version
# Set up GOPATH. We have tools which depend on being in a GOPATH (see
# hack/run-in-gopath.sh).
#
# Even in module mode, we need to set GOPATH for `go build` and `go install`
# to work. We build various tools (usually via `go install`) from a lot of
# scripts.
@@ -650,9 +641,6 @@ kube::golang::new::setup_env() {
# Instead we set it to a phony local path and process the results ourselves.
# In particular, GOPATH[0]/bin will be used for `go install`, with
# cross-compiles adding an extra directory under that.
#
# Eventually, when we no longer rely on run-in-gopath.sh we may be able to
# simplify this some.
export GOPATH="${KUBE_GOPATH}"
# If these are not set, set them now. This ensures that any subsequent