Skip to content

fix(cli): normalize upgrade version prefix#319

Open
OnlyYu1996 wants to merge 1 commit into
CortexLM:mainfrom
OnlyYu1996:fix-upgrade-version-v-prefix
Open

fix(cli): normalize upgrade version prefix#319
OnlyYu1996 wants to merge 1 commit into
CortexLM:mainfrom
OnlyYu1996:fix-upgrade-version-v-prefix

Conversation

@OnlyYu1996
Copy link
Copy Markdown

Fixes PlatformNetwork/bounty-challenge#53158.

Explicit upgrade targets are now normalized before querying the update API, so cortex upgrade v0.0.7 and cortex upgrade 0.0.7 use the same release lookup key. The same helper is also used for the existing current-version comparison.

Validation:

  • cargo +1.90.0 fmt --package cortex-cli --check
  • isolated rustc +1.90.0 --test harness covering unprefixed, v-prefixed, and V-prefixed inputs
  • git diff --check

Note: full cargo +1.90.0 test -p cortex-cli ... is blocked on this Windows machine by the existing workspace aws-lc-sys MSVC build failure before cortex-cli tests run.

Copy link
Copy Markdown

@greptile-apps greptile-apps Bot left a comment

Choose a reason for hiding this comment

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

Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.

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.

[BUG][v0.0.7] cortex upgrade <version> does not normalize v prefix before check_specific_version

1 participant