mirror of https://github.com/k3s-io/k3s
Merge pull request #76336 from liggitt/pin-module-level
make pin-dependency.sh only work at the module levelk3s-v1.15.3
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