Update pin-dependency.sh

This commit is contained in:
zryfish
2020-05-13 14:37:26 +08:00
committed by GitHub
parent 31d0e0e966
commit c905fdbdb4

View File

@@ -48,7 +48,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")