chore: tweak release script

This commit is contained in:
Vladimir Mihailenco 2022-03-17 15:13:56 +02:00
parent 04b14786d0
commit 081bf6b897
1 changed files with 5 additions and 4 deletions

View File

@ -47,14 +47,15 @@ PACKAGE_DIRS=$(find . -mindepth 2 -type f -name 'go.mod' -exec dirname {} \; \
for dir in $PACKAGE_DIRS for dir in $PACKAGE_DIRS
do do
sed --in-place \ printf "${dir}: go get -u && go mod tidy\n"
"s/go-redis\/redis\([^ ]*\) v.*/go-redis\/redis\1 ${TAG}/" "${dir}/go.mod" (cd ./${dir} && go get -u && go mod tidy)
done done
for dir in $PACKAGE_DIRS for dir in $PACKAGE_DIRS
do do
printf "${dir}: go get -d && go mod tidy\n" sed --in-place \
(cd ./${dir} && go get -d && go mod tidy) "s/go-redis\/redis\([^ ]*\) v.*/go-redis\/redis\1 ${TAG}/" "${dir}/go.mod"
(cd ./${dir} && go get -u && go mod tidy)
done done
sed --in-place "s/\(return \)\"[^\"]*\"/\1\"${TAG#v}\"/" ./version.go sed --in-place "s/\(return \)\"[^\"]*\"/\1\"${TAG#v}\"/" ./version.go