make pin-dependency.sh only work at the module level

This commit is contained in:
Jordan Liggitt 2019-04-09 11:08:20 -04:00
parent 99a52350a4
commit aaeecd86dc

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