chore: fix release script

This commit is contained in:
Vladimir Mihailenco 2023-01-24 16:14:31 +02:00
parent c7e6f04ee7
commit 00f12ab29f
1 changed files with 2 additions and 2 deletions

View File

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