mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-05 11:12:03 +00:00
fix hack/pin-dependency.sh shellcheck failures
This commit is contained in:
@@ -22,7 +22,6 @@
|
||||
./hack/lib/test.sh
|
||||
./hack/lib/version.sh
|
||||
./hack/make-rules/make-help.sh
|
||||
./hack/pin-dependency.sh
|
||||
./hack/test-integration.sh
|
||||
./hack/verify-no-vendor-cycles.sh
|
||||
./hack/verify-test-featuregates.sh
|
||||
|
@@ -90,7 +90,7 @@ echo "Running: go mod edit -replace ${dep}=${dep}@${rev}"
|
||||
go mod edit -replace "${dep}=${dep}@${rev}"
|
||||
|
||||
# Propagate pinned version to staging repos that also have that dependency
|
||||
for repo in $(ls staging/src/k8s.io | sort); do
|
||||
for repo in $(kube::util::list_staging_repos); do
|
||||
pushd "staging/src/k8s.io/${repo}" >/dev/null 2>&1
|
||||
if go mod edit -json | jq -e -r ".Require[] | select(.Path == \"${dep}\")" > /dev/null 2>&1; then
|
||||
go mod edit -require "${dep}@${rev}"
|
||||
|
Reference in New Issue
Block a user