Make golang::setup-env turn on workspaces
Both GO111MODULE and GOWORK default to on, so this just unsets them. We could set them to explicit values but this seems equivalent and cleaner.
This commit is contained in:
@@ -582,8 +582,9 @@ kube::golang::setup_env() {
|
||||
# Cross-compiles will not work with it set.
|
||||
unset GOBIN
|
||||
|
||||
# Explicitly turn on modules.
|
||||
export GO111MODULE=on
|
||||
# Turn on modules and workspaces (both are default-on).
|
||||
unset GO111MODULE
|
||||
unset GOWORK
|
||||
|
||||
# This may try to download our specific Go version. Do it last so it uses
|
||||
# the above-configured environment.
|
||||
|
Reference in New Issue
Block a user