Skip to content

Conversation

@stuartmorgan-g
Copy link
Collaborator

Since pub downgrade runs package resolution, failure in that step can simply mean that resolution has failed, rather than indicating a problem with the actual downgrade process. This adjusts the message to make it clear that it's a potential resolver failure, to aid in understanding failures.

Fixes flutter/flutter#178815

Since `pub downgrade` runs package resolution, failure in that step can
simply mean that resolution has failed, rather than indicating a problem
with the actual downgrade process. This adjusts the message to make it
clear that it's a potential resolver failure, to aid in understanding
failures.

Fixes flutter/flutter#178815
@stuartmorgan-g stuartmorgan-g marked this pull request as ready for review January 6, 2026 21:36
Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request adjusts the error message for a failed pub downgrade command within the analyze tool. The message is changed from "Unable to downgrade dependencies" to "Unable to resolve downgraded dependencies" to clarify that the failure is likely due to package resolution issues. A corresponding test that checks for this error message has also been updated.

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.

[packages] Improve downgraded analyze error message

2 participants