From 081bf6b8978967970f4bdc5e90857de1019fdacb Mon Sep 17 00:00:00 2001 From: Vladimir Mihailenco Date: Thu, 17 Mar 2022 15:13:56 +0200 Subject: [PATCH] chore: tweak release script --- scripts/release.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/scripts/release.sh b/scripts/release.sh index d925baa45..2e78be61b 100755 --- a/scripts/release.sh +++ b/scripts/release.sh @@ -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