From 98685335b33b411f713b87a409ac2fbc431c27e5 Mon Sep 17 00:00:00 2001 From: Igor Sirotin Date: Mon, 18 Nov 2024 08:19:40 +0000 Subject: [PATCH] wip --- _assets/scripts/upgrade_module_version.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/_assets/scripts/upgrade_module_version.sh b/_assets/scripts/upgrade_module_version.sh index cf548fd87..57ae6e010 100755 --- a/_assets/scripts/upgrade_module_version.sh +++ b/_assets/scripts/upgrade_module_version.sh @@ -6,8 +6,8 @@ oldVersion=$((version - 1)) echo "Upgrading from version ${oldVersion} to ${version}" # Remove sub-modules -rm extkeys/go.sum -rm extkeys/go.mod +#rm extkeys/go.sum +#rm extkeys/go.mod rm exchanges/go.sum rm exchanges/go.mod @@ -19,4 +19,7 @@ sed -i '' "s|github.com/status-im/status-go/v${oldVersion}|github.com/status-im/ mod upgrade -tag ${version} # Fix "/v3/v3" bug -find . -name "*.go" -exec sed -i '' "s/\/v${version}\/v${version}/\/v${version}/g" {} + \ No newline at end of file +find . -name "*.go" -exec sed -i '' "s/\/v${version}\/v${version}/\/v${version}/g" {} + + +# Fallback "/v3/extkeys" to "/extkeys" +sed -i '' "s|github.com/status-im/status-go/v${oldVersion}|github.com/status-im/status-go/v${version}|g" \ No newline at end of file