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