mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-02 16:29:21 +00:00
Remove some references to GOPATH
This commit is contained in:
parent
5f490b4fe8
commit
58ab5eea89
@ -25,7 +25,7 @@ set -o pipefail
|
||||
KUBE_ROOT=$(dirname "${BASH_SOURCE[0]}")/..
|
||||
source "${KUBE_ROOT}/hack/lib/init.sh"
|
||||
|
||||
# Explicitly opt into go modules, even though we're inside a GOPATH directory
|
||||
# Explicitly opt into go modules
|
||||
export GO111MODULE=on
|
||||
# Explicitly set GOFLAGS to ignore vendor, since GOFLAGS=-mod=vendor breaks dependency resolution while rebuilding vendor
|
||||
export GOFLAGS=-mod=mod
|
||||
|
@ -25,7 +25,7 @@ set -o pipefail
|
||||
KUBE_ROOT=$(dirname "${BASH_SOURCE[0]}")/..
|
||||
source "${KUBE_ROOT}/hack/lib/init.sh"
|
||||
|
||||
# Explicitly opt into go modules, even though we're inside a GOPATH directory
|
||||
# Explicitly opt into go modules
|
||||
export GO111MODULE=on
|
||||
# Explicitly set GOFLAGS to ignore vendor, since GOFLAGS=-mod=vendor breaks dependency resolution while rebuilding vendor
|
||||
export GOFLAGS=-mod=mod
|
||||
|
@ -29,7 +29,7 @@ MODULES=(
|
||||
staging/src/k8s.io/kms/internal/plugins/_mock
|
||||
)
|
||||
|
||||
# Explicitly opt into go modules, even though we're inside a GOPATH directory
|
||||
# Explicitly opt into go modules
|
||||
export GO111MODULE=on
|
||||
|
||||
# Detect problematic GOPROXY settings that prevent lookup of dependencies
|
||||
|
@ -23,7 +23,7 @@ set -o pipefail
|
||||
|
||||
KUBE_ROOT=$(dirname "${BASH_SOURCE[0]}")/..
|
||||
source "${KUBE_ROOT}/hack/lib/init.sh"
|
||||
# Explicitly opt into go modules, even though we're inside a GOPATH directory
|
||||
# Explicitly opt into go modules
|
||||
export GO111MODULE=on
|
||||
|
||||
kube::golang::verify_go_version
|
||||
|
@ -34,7 +34,7 @@ kube::golang::verify_go_version
|
||||
export GOBIN="${KUBE_OUTPUT_BIN}"
|
||||
PATH="${GOBIN}:${PATH}"
|
||||
|
||||
# Explicitly opt into go modules, even though we're inside a GOPATH directory
|
||||
# Explicitly opt into go modules
|
||||
export GO111MODULE=on
|
||||
|
||||
# Install golangci-lint
|
||||
|
@ -30,7 +30,7 @@ kube::golang::verify_go_version
|
||||
|
||||
# Turn off workspaces until we are ready for them later
|
||||
export GOWORK=off
|
||||
# Explicitly opt into go modules, even though we're inside a GOPATH directory
|
||||
# Explicitly opt into go modules
|
||||
export GO111MODULE=on
|
||||
# Explicitly set GOFLAGS to ignore vendor, since GOFLAGS=-mod=vendor breaks dependency resolution while rebuilding vendor
|
||||
export GOFLAGS=-mod=mod
|
||||
|
@ -128,7 +128,7 @@ done
|
||||
|
||||
kube::golang::verify_go_version
|
||||
|
||||
# Explicitly opt into go modules, even though we're inside a GOPATH directory
|
||||
# Explicitly opt into go modules
|
||||
export GO111MODULE=on
|
||||
|
||||
# Install golangci-lint
|
||||
|
Loading…
Reference in New Issue
Block a user