-
Notifications
You must be signed in to change notification settings - Fork 4k
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
(cli): improve upgrade banner message #18024
Comments
I spent a bit of time today attempting to implement the upgrade message improvement (see https://github.com/aws/aws-cdk/compare/master...blimmer:blimmer/improve-upgrade-message?expand=1). I'm running into some problems with testing that I'll need to spend some more time on, though. Feedback welcome for folks who might be more familiar with the sinon/jest setup in cdk. |
Feel free to turn this into a PR, I can have a better response when I can see the error messages. |
This issue has not received a response in a while. If you want to keep this issue open, please leave a comment below and auto-close will be canceled. |
Thanks for the PR. I think item 1 would be covered by https://docs.aws.amazon.com/cdk/v2/guide/migrating-v2.html#migrating-v2-v1-uppgrade Item 3 will be addressed by aws/aws-cdk-rfcs#389 I think everything here is addressed, will be closing this issue. Please let me know directly if there's something I missed. |
|
This PR relates to #18024. It adds information on upgrading between major versions to the upgrade banner. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
This PR relates to aws#18024. It adds information on upgrading between major versions to the upgrade banner. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Description
Today, the upgrade notice is fairly simple:
aws-cdk/packages/aws-cdk/lib/version.ts
Lines 109 to 112 in 0745193
In my opinion, there are a few things that could be improved with this message:
npm i -g aws-cdk
) isn't quite accurate. These users should instead use something likenpm-check-updates
to update the version pinned by theirpackage.json
and lockfile to upgrade CDK. If you run the command provided, you'd end up with a mismatch between your local version and the version specified in your project.Use Case
As a CDK user, I want to understand what the upgrade process entails. It's an investment to keep up-to-date, especially with a fast-moving project like aws-cdk.
Also, as someone who uses aws-cdk regularly, I want to make it easier for folks who are casual users to understand the upgrade process.
Proposed Solution
Here are some ideas for each of the ordered list above:
package.json
and lockfile. So, to upgrade, they should update their versions in a project-specific (e.g., not global) way. For everyone else, they should upgrade via their installation path (e.g.homebrew
,npm
global install, etc.).Other information
No response
Acknowledge
The text was updated successfully, but these errors were encountered: