This commit is contained in:
Igor Sirotin 2024-11-18 08:19:40 +00:00
parent b446a516b8
commit 98685335b3
No known key found for this signature in database
GPG Key ID: 425E227CAAB81F95
1 changed files with 6 additions and 3 deletions

View File

@ -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" {} +
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"