mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 06:27:05 +00:00
Ensure verify-godep passes godep to godep-save
This commit is contained in:
parent
87636fdd78
commit
9e9a66ed22
@ -34,6 +34,7 @@ REQUIRED_BINS=(
|
|||||||
)
|
)
|
||||||
|
|
||||||
pushd "${KUBE_ROOT}" > /dev/null
|
pushd "${KUBE_ROOT}" > /dev/null
|
||||||
|
"${GODEP}" version
|
||||||
GO15VENDOREXPERIMENT=1 ${GODEP} save "${REQUIRED_BINS[@]}"
|
GO15VENDOREXPERIMENT=1 ${GODEP} save "${REQUIRED_BINS[@]}"
|
||||||
# create a symlink in vendor directory pointing to the staging client. This
|
# create a symlink in vendor directory pointing to the staging client. This
|
||||||
# let other packages use the staging client as if it were vendored.
|
# let other packages use the staging client as if it were vendored.
|
||||||
|
@ -60,6 +60,7 @@ function cleanup {
|
|||||||
echo "Removing ${_tmpdir}"
|
echo "Removing ${_tmpdir}"
|
||||||
rm -rf "${_tmpdir}"
|
rm -rf "${_tmpdir}"
|
||||||
fi
|
fi
|
||||||
|
export GODEP=""
|
||||||
}
|
}
|
||||||
trap cleanup EXIT
|
trap cleanup EXIT
|
||||||
|
|
||||||
@ -76,7 +77,7 @@ export GOPATH="${_tmpdir}"
|
|||||||
pushd "${_kubetmp}" 2>&1 > /dev/null
|
pushd "${_kubetmp}" 2>&1 > /dev/null
|
||||||
# Build the godep tool
|
# Build the godep tool
|
||||||
go get -u github.com/tools/godep 2>/dev/null
|
go get -u github.com/tools/godep 2>/dev/null
|
||||||
GODEP="${GOPATH}/bin/godep"
|
export GODEP="${GOPATH}/bin/godep"
|
||||||
pin-godep() {
|
pin-godep() {
|
||||||
pushd "${GOPATH}/src/github.com/tools/godep" > /dev/null
|
pushd "${GOPATH}/src/github.com/tools/godep" > /dev/null
|
||||||
git checkout "$1"
|
git checkout "$1"
|
||||||
|
Loading…
Reference in New Issue
Block a user