Compare commits

...

1 Commits

Author SHA1 Message Date
zryfish
c905fdbdb4 Update pin-dependency.sh 2020-05-13 14:37:26 +08:00

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