mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 13:37:30 +00:00
Make pin-dependency.sh work with things other than docker
This commit is contained in:
parent
4d380ee279
commit
892ad8b449
@ -56,10 +56,10 @@ fi
|
|||||||
|
|
||||||
# Add the require directive
|
# Add the require directive
|
||||||
echo "Running: go get ${dep}@${sha}"
|
echo "Running: go get ${dep}@${sha}"
|
||||||
go get "${dep}@${sha}"
|
go get -d "${dep}@${sha}"
|
||||||
|
|
||||||
# Find the resolved version
|
# Find the resolved version
|
||||||
rev=$(go mod edit -json | jq -r '.Require[] | select(.Path == "github.com/docker/docker") | .Version')
|
rev=$(go mod edit -json | jq -r ".Require[] | select(.Path == \"${dep}\") | .Version")
|
||||||
echo "Resolved to ${dep}@${rev}"
|
echo "Resolved to ${dep}@${rev}"
|
||||||
|
|
||||||
# Add the replace directive
|
# Add the replace directive
|
||||||
|
Loading…
Reference in New Issue
Block a user