Skip to content

Introduce --latest flag, and properly sort the output from --list#40

Merged
shawntabrizi merged 4 commits intomainfrom
shawntabrizi-latest
Mar 12, 2026
Merged

Introduce --latest flag, and properly sort the output from --list#40
shawntabrizi merged 4 commits intomainfrom
shawntabrizi-latest

Conversation

@shawntabrizi
Copy link
Member

This PR introduces the --latest flag, which automatically uses the latest release of the polkadot-sdk when updating dependencies.

It should basically reduce psvm --list && psvm --version <latest> to a single command.

This also changes the output behavior of psvm --list to actually order the various Polkadot SDK versions chronologically.

In total, this PR solves the problem of having to parse the unordered --list, and figure out which one is the latest Polkadot version so I can update my project... Simple behaviors which I would expect this tool to handle automatically.

@shawntabrizi shawntabrizi requested a review from ggwpez February 9, 2026 15:17
- name: Run tests
run: cargo test --locked
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this needed for cargo test?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The cli gets the list of versions and stuff from GitHub. To enable the end to end tests this is needed or you get intermittent rate request limits

@shawntabrizi shawntabrizi merged commit bb5817f into main Mar 12, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants