-
Notifications
You must be signed in to change notification settings - Fork 40
chore: source remote binary if version not matches #516
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
Comments suppressed due to low confidence (1)
crates/pop-cli/src/common/binary.rs:178
- [nitpick] The test 'semantic_version_invalid_works' uses non-version strings ('bash', 'which') to test version parsing, which might not effectively validate the SemanticVersion conversion logic. Consider using controlled version strings to ensure the test accurately reflects expected behavior.
fn semantic_version_invalid_works() {
Codecov ReportAttention: Patch coverage is
@@ Coverage Diff @@
## main #516 +/- ##
==========================================
+ Coverage 78.36% 78.93% +0.56%
==========================================
Files 95 98 +3
Lines 22339 22863 +524
Branches 22339 22863 +524
==========================================
+ Hits 17507 18046 +539
+ Misses 2680 2659 -21
- Partials 2152 2158 +6
... and 20 files with indirect coverage changes 🚀 New features to boost your workflow:
|
AlexD10S
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I test it with:
cargo install --git https://github.com/paritytech/try-runtime-cli --tag v0.7.0 --locked
And then running pop test on-runtime-upgrade it sources the lastest version:
◇ ✅ try-runtime successfully sourced. Cached at: /Users/alexbean/Library/Caches/pop/try-runtime-cli-v0.8.0
SemanticVersionto represent to the semantic version(minor, major, patch)which_versionthat returns the path to the binary if the version matches the targeted one.