Skip to content
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

Bubble up expected pub security update errors to the user #7880

Merged

Conversation

deivid-rodriguez
Copy link
Contributor

Small follow up to #7446.

@deivid-rodriguez deivid-rodriguez requested a review from a team as a code owner August 23, 2023 09:44
@github-actions github-actions bot added the L: dart:pub Dart packages via pub label Aug 23, 2023
@deivid-rodriguez deivid-rodriguez force-pushed the deivid-rodriguez/pub-security-update-user-errors branch from 3df28ac to 0cc61ea Compare August 23, 2023 10:44
@deivid-rodriguez deivid-rodriguez merged commit 349bfa8 into main Aug 23, 2023
@deivid-rodriguez deivid-rodriguez deleted the deivid-rodriguez/pub-security-update-user-errors branch August 23, 2023 10:50
# This security update would require unlocking other packages, which is not currently supported.
# Because of that, return original requirements, so that no requirements are actually updated and
# the error bubbles up as security_update_not_possible to the user.
return depedency.requirements if breaking_changes.size > 1
Copy link
Member

Choose a reason for hiding this comment

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

Is depedency a typo? If so, I'm actually kinda surprised Rubocop isn't able to flag this.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

😮 Nice catch! It sounds like a changed one unexpected error with another 😬. Will fix!

Regarding catching this, I think a spell checker would catch this easily?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
L: dart:pub Dart packages via pub
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants