From bf0c960dd5cb9791ca95807ab5fd5fc50949ed0f Mon Sep 17 00:00:00 2001 From: Matthew Dean Date: Mon, 25 Nov 2024 13:36:02 +0000 Subject: [PATCH] Document upgrading polkadot-sdk --- Upgrade.md | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/Upgrade.md b/Upgrade.md index 047b5780..06f639a6 100644 --- a/Upgrade.md +++ b/Upgrade.md @@ -4,23 +4,16 @@ A guide on how to upgrade to the latest [release](https://github.com/paritytech/ Based on updating from `release-polkadot-v1.5.0` to `release-polkadot-v1.9.0`. See the [PR](https://github.com/digicatapult/sqnc-node/pull/169/files). -## Upgrade branch version +## Upgrade polkadot-sdk version -In the root `Cargo.toml` bump the dependencies that point to a release branch of the `polkadot-sdk`: +`Polkadot-sdk` (`substrate`) dependencies are upgraded using the tool [`psvm`](https://github.com/paritytech/psvm). Once installed you can update the `polkadot-sdk` with, for example: -For example - -```rust -frame-support = { default-features = false, git = "https://github.com/paritytech/polkadot-sdk.git", branch = "release-polkadot-v1.5.0" } -``` - -becomes - -```rust -frame-support = { default-features = false, git = "https://github.com/paritytech/polkadot-sdk.git", branch = "release-polkadot-v1.9.0" } +```bash +# upgrade polkadot-sdk to version stable2409-2 +psvm -v "stable2409-2" ``` -Run `cargo update` to get newer versions of all dependencies. +Available versions are documented on [https://github.com/paritytech/release-registry/](https://github.com/paritytech/release-registry/) ## Debugging techniques