Skip to content

Commit 081bf6b

Browse files
committed
chore: tweak release script
1 parent 04b1478 commit 081bf6b

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

scripts/release.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,15 @@ PACKAGE_DIRS=$(find . -mindepth 2 -type f -name 'go.mod' -exec dirname {} \; \
4747

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

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

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

0 commit comments

Comments
 (0)