mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-06 18:54:06 +00:00
Change verify-licenses to new setup_env
This commit is contained in:
parent
974276e4a0
commit
d785f13c05
@ -27,7 +27,7 @@ source "${KUBE_ROOT}/hack/lib/init.sh"
|
||||
source "${KUBE_ROOT}/hack/lib/util.sh"
|
||||
|
||||
# This sets up the environment, like GOCACHE, which keeps the worktree cleaner.
|
||||
kube::golang::old::setup_env
|
||||
kube::golang::new::setup_env
|
||||
kube::util::ensure-temp-dir
|
||||
|
||||
ARTIFACTS="${ARTIFACTS:-${PWD}/_artifacts}"
|
||||
@ -42,9 +42,6 @@ cd "${KUBE_TEMP}"/tmp_test_licenses/kubernetes && rm -rf vendor
|
||||
export GOBIN="${KUBE_OUTPUT_BIN}"
|
||||
PATH="${GOBIN}:${PATH}"
|
||||
|
||||
# Explicitly opt into go modules, even though we're inside a GOPATH directory
|
||||
export GO111MODULE=on
|
||||
|
||||
function http_code() {
|
||||
curl -I -s -o /dev/null -w "%{http_code}" "$1"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user