mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-26 05:03:09 +00:00
Fix pin-dependency for workspaces
This commit is contained in:
parent
1c3e701e0c
commit
651297220e
@ -25,9 +25,12 @@ 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
|
kube::golang::setup_env
|
||||||
export GO111MODULE=on
|
kube::golang::verify_go_version
|
||||||
|
kube::util::require-jq
|
||||||
|
|
||||||
# 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 GOWORK=off
|
||||||
export GOFLAGS=-mod=mod
|
export GOFLAGS=-mod=mod
|
||||||
# Detect problematic GOPROXY settings that prevent lookup of dependencies
|
# Detect problematic GOPROXY settings that prevent lookup of dependencies
|
||||||
if [[ "${GOPROXY:-}" == "off" ]]; then
|
if [[ "${GOPROXY:-}" == "off" ]]; then
|
||||||
@ -35,9 +38,6 @@ if [[ "${GOPROXY:-}" == "off" ]]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
kube::golang::verify_go_version
|
|
||||||
kube::util::require-jq
|
|
||||||
|
|
||||||
dep="${1:-}"
|
dep="${1:-}"
|
||||||
sha="${2:-}"
|
sha="${2:-}"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user