From f72484df88806a5c64e1e1d7abd6cb8624ec7b1d Mon Sep 17 00:00:00 2001 From: Tim Hockin Date: Sat, 23 Dec 2017 10:18:15 -0800 Subject: [PATCH] Remove kube::util::go_install_from_commit --- hack/lib/util.sh | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/hack/lib/util.sh b/hack/lib/util.sh index e51b7c7eea8..aa4642d1d4e 100755 --- a/hack/lib/util.sh +++ b/hack/lib/util.sh @@ -466,23 +466,6 @@ kube::util::ensure_no_staging_repos_in_gopath() { fi } -# Installs the specified go package at a particular commit. -kube::util::go_install_from_commit() { - local -r pkg=$1 - local -r commit=$2 - - kube::util::ensure-temp-dir - mkdir -p "${KUBE_TEMP}/go/src" - GOPATH="${KUBE_TEMP}/go" go get -d -u "${pkg}" - ( - cd "${KUBE_TEMP}/go/src/${pkg}" - git checkout -q "${commit}" - GOPATH="${KUBE_TEMP}/go" go install "${pkg}" - ) - PATH="${KUBE_TEMP}/go/bin:${PATH}" - hash -r # force bash to clear PATH cache -} - # Checks that the GOPATH is simple, i.e. consists only of one directory, not multiple. kube::util::ensure_single_dir_gopath() { if [[ "${GOPATH}" == *:* ]]; then