paritytech / psvm

Polkadot SDK Version Manager
Other
40 stars 6 forks source link

Added the --orml flag to view available ORML versions and update the ORML crates in Cargo.toml #23

Closed 0xsouravm closed 2 months ago

0xsouravm commented 3 months ago

This PR introduces a new --orml flag to the CLI tool, enabling users to view the available ORML versions with respect to the released Polkadot-sdk versions and update the ORML dependencies in the local Cargo.toml if present. This only logs an error if the supplied version isn't found in the ORML releases but doesn't exit with a non-zero exit code.

Key Features:

  1. ORML Version Viewing: When the --orml flag is used with the --list flag, users can now see all the available ORML versions that are compatible with the corresponding Polkadot-sdk versions.

  2. ORML Version Updating: When the --orml flag is used with the --version flag, users can now update their ORML dependencies in the Cargo.toml file if the version is available in the ORML releases, else those dependencies remain untouched and users can resolve those manually.

  3. Compatible with the previous --check flag update: When the --orml flag is used with the --check flag, users can simply compare and check if their dependencies(including the ORML crates) match the expected versions, without actually updating the Cargo.toml

polkadot address: 16SGUEfpDop2fXi9K89yzCQWHJ3vHz1tKJVA1pCBjoew5tzP

0xsouravm commented 2 months ago

Looks broadly good, just some nits.

Fixing most of the things you pointed out.

0xsouravm commented 2 months ago

I am done with the changes @ggwpez

ggwpez commented 2 months ago

I opened a tip proposal here, as the bot does not cover this repo: https://polkadot.subsquare.io/referenda/1088

0xsouravm commented 2 months ago

Thank you so much @ggwpez! Means a lot. ♥️

Polkadot-Forum commented 1 month ago

This pull request has been mentioned on Polkadot Forum. There might be relevant details there:

https://forum.polkadot.network/t/sponsorship-for-sub0-thailand-2024/10093/26