Make mkreleaselog work a bit more

This commit is contained in:
Łukasz Magiera 2021-04-13 12:20:30 +02:00
parent 0bc94b554c
commit 34aa267100

View File

@ -1,5 +1,5 @@
#!/bin/zsh #!/bin/zsh
#set -x set -x
set -euo pipefail set -euo pipefail
export GO111MODULE=on export GO111MODULE=on
export GOPATH="$(go env GOPATH)" export GOPATH="$(go env GOPATH)"
@ -139,6 +139,7 @@ indent() {
} }
mod_deps() { mod_deps() {
go mod download
go list -json -m all | jq 'select(.Version != null)' go list -json -m all | jq 'select(.Version != null)'
} }
@ -178,9 +179,13 @@ recursive_release_log() {
( (
local result=0 local result=0
local workspace="$(mktemp -d)" local workspace="$(mktemp -d)"
trap "$(printf 'rm -rf "%q"' "$workspace")" INT TERM EXIT #trap "$(printf 'rm -rf "%q"' "$workspace")" INT TERM EXIT
cd "$workspace" cd "$workspace"
mkdir extern
ln -s "$repo_root"/extern/filecoin-ffi extern/filecoin-ffi
ln -s "$repo_root"/extern/test-vectors extern/test-vectors
echo "Computing old deps..." >&2 echo "Computing old deps..." >&2
git -C "$repo_root" show "$start:go.mod" >go.mod git -C "$repo_root" show "$start:go.mod" >go.mod
mod_deps | resolve_commits | jq -s > old_deps.json mod_deps | resolve_commits | jq -s > old_deps.json