diff --git a/hack/update-vendor-licenses.sh b/hack/update-vendor-licenses.sh index 2f6ce5e0d86..835fd53ad1f 100755 --- a/hack/update-vendor-licenses.sh +++ b/hack/update-vendor-licenses.sh @@ -135,7 +135,8 @@ process_content () { ############################################################################# # use modules, and use module info rather than the vendor dir for computing dependencies -export GO111MODULE=on +kube::golang::setup_env +export GOWORK=off export GOFLAGS=-mod=mod # Check bash version