Merge pull request #76336 from liggitt/pin-module-level

make pin-dependency.sh only work at the module level
k3s-v1.15.3
Kubernetes Prow Robot 2019-04-09 12:37:17 -07:00 committed by GitHub
commit 61c4fe7063
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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")