Skip to content

Commit

Permalink
chore: tweak release script
Browse files Browse the repository at this point in the history
  • Loading branch information
vmihailenco committed Mar 17, 2022
1 parent 04b1478 commit 081bf6b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,15 @@ PACKAGE_DIRS=$(find . -mindepth 2 -type f -name 'go.mod' -exec dirname {} \; \

for dir in $PACKAGE_DIRS
do
sed --in-place \
"s/go-redis\/redis\([^ ]*\) v.*/go-redis\/redis\1 ${TAG}/" "${dir}/go.mod"
printf "${dir}: go get -u && go mod tidy\n"
(cd ./${dir} && go get -u && go mod tidy)
done

for dir in $PACKAGE_DIRS
do
printf "${dir}: go get -d && go mod tidy\n"
(cd ./${dir} && go get -d && go mod tidy)
sed --in-place \
"s/go-redis\/redis\([^ ]*\) v.*/go-redis\/redis\1 ${TAG}/" "${dir}/go.mod"
(cd ./${dir} && go get -u && go mod tidy)
done

sed --in-place "s/\(return \)\"[^\"]*\"/\1\"${TAG#v}\"/" ./version.go
Expand Down

0 comments on commit 081bf6b

Please sign in to comment.