-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
feat(upgrade): print info links for Deno 2 RC releases #25225
Conversation
Waiting on decision what's the blog post link before landing this one. |
Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com> Signed-off-by: Bartek Iwańczuk <biwanczuk@gmail.com>
cli/tools/upgrade.rs
Outdated
&& new_semver.patch == 0 | ||
&& new_semver.pre.first() == Some(&"rc".to_string()); | ||
|
||
if is_deno_2_rc { |
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.
Probably in general when new_semver.major == 2 && (current_semver.pre.first() == Some(&"rc".to_string() || current_semver.major == 1)
That way 1.0 -> 2.0 (stable) upgrades will get this warning too.
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 updated it to that migration guide is printed for upgrading to Deno 2 RC, or when switching from Deno 1 to Deno 2.
I kept the remaining logic the same.
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.
LGTM
In addition to printing a blog post information (if it's available), this will also print a link to migration guide and the bug tracker. --------- Signed-off-by: Bartek Iwańczuk <biwanczuk@gmail.com> Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
In addition to printing a blog post information (if it's available), this will also
print a link to migration guide and the bug tracker.