forked from mirror/redis
chore: go 1.17 compat
This commit is contained in:
parent
894b0b961b
commit
bbf100d7bb
|
@ -48,15 +48,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
|
||||||
printf "${dir}: go get -u && go mod tidy\n"
|
printf "${dir}: go get -u && go mod tidy\n"
|
||||||
#(cd ./${dir} && go get -u && go mod tidy)
|
#(cd ./${dir} && go get -u && go mod tidy -compat=1.17)
|
||||||
done
|
done
|
||||||
|
|
||||||
for dir in $PACKAGE_DIRS
|
for dir in $PACKAGE_DIRS
|
||||||
do
|
do
|
||||||
sed --in-place \
|
sed --in-place \
|
||||||
"s/go-redis\/redis\([^ ]*\) v.*/go-redis\/redis\1 ${TAG}/" "${dir}/go.mod"
|
"s/go-redis\/redis\([^ ]*\) v.*/go-redis\/redis\1 ${TAG}/" "${dir}/go.mod"
|
||||||
#(cd ./${dir} && go get -u && go mod tidy)
|
#(cd ./${dir} && go get -u && go mod tidy -compat=1.17)
|
||||||
(cd ./${dir} && go mod tidy)
|
(cd ./${dir} && go mod tidy -compat=1.17)
|
||||||
done
|
done
|
||||||
|
|
||||||
sed --in-place "s/\(return \)\"[^\"]*\"/\1\"${TAG#v}\"/" ./version.go
|
sed --in-place "s/\(return \)\"[^\"]*\"/\1\"${TAG#v}\"/" ./version.go
|
||||||
|
|
Loading…
Reference in New Issue