Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-dms3
Commits
9284cb27
Unverified
Commit
9284cb27
authored
May 17, 2019
by
Steven Allen
Committed by
GitHub
May 17, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6348 from ipfs/feat/mkreleaselog/deps
Add generation of dependency changes to mkreleaselog
parents
f72be19a
96a9dd77
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
1 deletion
+18
-1
bin/mkreleaselog
bin/mkreleaselog
+18
-1
No files found.
bin/mkreleaselog
View file @
9284cb27
#!/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
)
...
...
@@ -10,3 +14,16 @@ do
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
"
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] //'
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment