From 64acee143505cc77666a2a67770866ef624dfa34 Mon Sep 17 00:00:00 2001 From: Vladimir Mihailenco Date: Tue, 9 Aug 2022 10:58:16 +0300 Subject: [PATCH] chore: update tidy --- scripts/release.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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