mirror of https://github.com/go-redis/redis.git
chore: tweak release script
This commit is contained in:
parent
04b14786d0
commit
081bf6b897
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue