mirror of https://github.com/go-redis/redis.git
chore: fix release script
This commit is contained in:
parent
c7e6f04ee7
commit
00f12ab29f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue