Commit 96a9dd77 authored by Jakub Sztandera's avatar Jakub Sztandera

Add generation of dependency changes to mkreleaselog

License: MIT
Signed-off-by: default avatarJakub Sztandera <kubuxu@protonmail.ch>
parent f72be19a
#!/bin/bash #!/usr/bin/env bash
#set -x
set -euo pipefail
IFS=$'\n\t'
export GO111MODULE=on
LAST_TAG=$(git tag -l | sort -V | grep -v -- '-rc' | grep 'v'| tail -n1) LAST_TAG=$(git tag -l | sort -V | grep -v -- '-rc' | grep 'v'| tail -n1)
...@@ -10,3 +14,16 @@ do ...@@ -10,3 +14,16 @@ do
desc=$(git show $commit | sed '8q;d' | sed 's/^ //g') desc=$(git show $commit | sed '8q;d' | sed 's/^ //g')
printf " - %s ([ipfs/go-ipfs#%s](https://github.com/ipfs/go-ipfs/pull/%s))\n" "$desc" "$prnum" "$prnum" printf " - %s ([ipfs/go-ipfs#%s](https://github.com/ipfs/go-ipfs/pull/%s))\n" "$desc" "$prnum" "$prnum"
done done
TMP_DIR=$(mktemp -d --tmpdir go-ipfs-mkreleaselog-XXXXXX)
git show "$LAST_TAG:go.mod" > "$TMP_DIR/go.mod"
echo
echo "Dependecy updates:"
join -a 2 <(cd "$TMP_DIR" && go list -m all | sort -k 1b,1) <(go list -m all | sort -k 1b,1) | awk \
'
{ if (NF == 2)
printf "2 - %s none => %s\n", $1, $2
else if ($2 != $3)
printf "1 - %s %s => %s\n", $1, $2, $3 }
' | sort | sed 's/[0-9] //'
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment