mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 19:31:44 +00:00
Remove unneeded code
This commit is contained in:
parent
4fb2265bd8
commit
78ed389122
@ -20,7 +20,6 @@ set -o pipefail
|
||||
|
||||
KUBE_ROOT=$(dirname "${BASH_SOURCE}")/..
|
||||
source "${KUBE_ROOT}/hack/lib/init.sh"
|
||||
source "${KUBE_ROOT}/hack/lib/util.sh"
|
||||
|
||||
kube::log::status "Restoring kubernetes godeps"
|
||||
|
||||
|
@ -18,30 +18,6 @@ set -o errexit
|
||||
set -o nounset
|
||||
set -o pipefail
|
||||
|
||||
# As of go 1.6, the vendor experiment is enabled by default.
|
||||
export GO15VENDOREXPERIMENT=1
|
||||
|
||||
#### HACK ####
|
||||
# Sometimes godep just can't handle things. This lets use manually put
|
||||
# some deps in place first, so godep won't fall over.
|
||||
preload-dep() {
|
||||
org="$1"
|
||||
project="$2"
|
||||
sha="$3"
|
||||
# project_dir ($4) is optional, if unset we will generate it
|
||||
if [[ -z ${4:-} ]]; then
|
||||
project_dir="${GOPATH}/src/${org}/${project}.git"
|
||||
else
|
||||
project_dir="${4}"
|
||||
fi
|
||||
|
||||
echo "**HACK** preloading dep for ${org} ${project} at ${sha} into ${project_dir}"
|
||||
git clone "https://${org}/${project}" "${project_dir}" > /dev/null 2>&1
|
||||
pushd "${project_dir}" > /dev/null
|
||||
git checkout "${sha}"
|
||||
popd > /dev/null
|
||||
}
|
||||
|
||||
KUBE_ROOT=$(dirname "${BASH_SOURCE}")/..
|
||||
source "${KUBE_ROOT}/hack/lib/init.sh"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user