mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-25 12:43:23 +00:00
Merge pull request #76336 from liggitt/pin-module-level
make pin-dependency.sh only work at the module level
This commit is contained in:
commit
61c4fe7063
@ -64,7 +64,7 @@ mkdir -p "${_tmp}"
|
||||
|
||||
# Add the require directive
|
||||
echo "Running: go get ${dep}@${sha}"
|
||||
go get -d "${dep}@${sha}"
|
||||
go get -m -d "${dep}@${sha}"
|
||||
|
||||
# Find the resolved version
|
||||
rev=$(go mod edit -json | jq -r ".Require[] | select(.Path == \"${dep}\") | .Version")
|
||||
|
Loading…
Reference in New Issue
Block a user