Change verify-licenses to new setup_env

This commit is contained in:
Tim Hockin 2023-12-09 16:12:45 -08:00
parent 974276e4a0
commit d785f13c05
No known key found for this signature in database

View File

@ -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"
}