Fix hack/pin-dependency.sh for go1.13

This commit is contained in:
Jordan Liggitt 2019-09-17 22:15:18 -04:00
parent 264c905a78
commit ee2b887c74

View File

@ -62,7 +62,7 @@ mkdir -p "${_tmp}"
# Add the require directive
echo "Running: go get ${dep}@${sha}"
go get -m -d "${dep}@${sha}"
go get -d "${dep}@${sha}"
# Find the resolved version
rev=$(go mod edit -json | jq -r ".Require[] | select(.Path == \"${dep}\") | .Version")