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