diff --git a/scripts/release.sh b/scripts/release.sh index a8d55e3..eba0bb7 100755 --- a/scripts/release.sh +++ b/scripts/release.sh @@ -47,8 +47,8 @@ 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) + printf "${dir}: go get -u && go mod tidy -compat=1.18\n" + (cd ./${dir} && go get -u && go mod tidy -compat=1.18) done @@ -56,7 +56,7 @@ for dir in $PACKAGE_DIRS do sed --in-place \ "s/uptrace\/bunrouter\([^ ]*\) v.*/uptrace\/bunrouter\1 ${TAG}/" "${dir}/go.mod" - (cd ./${dir} && go mod tidy) + (cd ./${dir} && go mod tidy -compat=1.18) done sed --in-place "s/\(return \)\"[^\"]*\"/\1\"${TAG#v}\"/" ./version.go