-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Fixes #7767: Updated bun upgrade
to return error when used with cmd arguments
#7784
Conversation
- Updated `upgrade` command to check for command-line arguments and return an error if so providing a suggested `update` command.
bun upgrade
to return error when used with cmd arguments
bun upgrade
to return error when used with cmd argumentsbun upgrade
to return error when used with cmd arguments
- Added more tests
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 love this feature. I remember discussion before about confusion between "update" and "upgrade" but this feature is nice solution to the ambiguity.
there is a critical mistake in the test files, so i will delay running ci until that is fixed
Co-authored-by: dave caruso <me@paperdave.net>
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 apologize for long delay in review. this looks alright.
- Removed call to `std.mem.span` - Added conditional to only run if there's more than 2 arguments (ignores the exec and `upgrade`) - Added new test to ensure `upgrade` runs with 0 arguments passed
What does this PR do?
Updated the
upgrade
command to check for command-line arguments and return an error if so providing a suggestedupdate
command.fixes #7767
How did you verify your code works?
I wrote automated tests
If Zig files changed: