mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 19:31:44 +00:00
Suppress irrelevant jq error message when propagating pinned dependencies
This commit is contained in:
parent
3a50c00692
commit
696eb32d4b
@ -92,7 +92,7 @@ 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
|
||||
pushd "staging/src/k8s.io/${repo}" >/dev/null 2>&1
|
||||
if go mod edit -json | jq -e -r ".Require[] | select(.Path == \"${dep}\")" > /dev/null; then
|
||||
if go mod edit -json | jq -e -r ".Require[] | select(.Path == \"${dep}\")" > /dev/null 2>&1; then
|
||||
go mod edit -require "${dep}@${rev}"
|
||||
go mod edit -replace "${dep}=${dep}@${rev}"
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user