Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fix deprecation validator message to require leading v#180467

Merged
auto-submit[bot] merged 17 commits intoflutter:masterfrom
ashoknarayan:fix-deprecation-version-v
Feb 11, 2026
Merged

Fix deprecation validator message to require leading v#180467
auto-submit[bot] merged 17 commits intoflutter:masterfrom
ashoknarayan:fix-deprecation-version-v

Conversation

@ashoknarayan
Copy link
Contributor

@ashoknarayan ashoknarayan commented Jan 3, 2026

Fixes #178246

This PR updates the deprecation validator error message to clarify that
the version must include a leading v (for example, v1.2.3).

It also updates the deprecation template documentation to match the
validator requirement.

No functional behavior is changed; this only improves clarity and
consistency between the validator and documentation.

@github-actions github-actions bot added c: contributor-productivity Team-specific productivity, code health, technical debt. framework flutter/packages/flutter repository. See also f: labels. d: docs/ flutter/flutter/docs, for contributors labels Jan 3, 2026
Copy link
Contributor

@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 updates a deprecation validator error message and its corresponding documentation. The change in dev/bots/analyze.dart clarifies that the version string must be prefixed with a 'v', making the error message more specific. The update in docs/contributing/Tree-hygiene.md aligns the documentation with this requirement. The changes are correct and improve consistency.

Copy link
Contributor

@Piinks Piinks left a comment

Choose a reason for hiding this comment

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

Thanks for sending another PR! It looks like this is failing some checks, can you take a look?

@ashoknarayan
Copy link
Contributor Author

Thanks for the review @Piinks!

This PR is addressing #178246, which reports that the deprecations validator truncates its error message before the required leading v in the version tag and that the documentation template does not clearly reflect this requirement.

You’re right about the failing checks — after taking a closer look, it seems the failures are due to tests that assert the exact validator error message text. Since this PR updates the wording of that message (to explicitly require a leading v, e.g. v1.2.3), the existing expected outputs in those tests are now out of date.

I’ll track down the affected tests and update their expected error messages to match the new validator output, and push a follow-up commit shortly.

Thanks for pointing this out!

@justinmc justinmc requested a review from Piinks February 3, 2026 23:18
@Piinks
Copy link
Contributor

Piinks commented Feb 3, 2026

Holding off on the re-review here until the test failures are addressed. 👍

@ashoknarayan
Copy link
Contributor Author

I think it is ready for another review.

Copy link
Contributor

@Piinks Piinks left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks for the updates here!

Copy link
Contributor

@navaronbracke navaronbracke left a comment

Choose a reason for hiding this comment

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

Just a suggestion on how to test this.

@ashoknarayan
Copy link
Contributor Author

@navaronbracke I have added the suggested updates. Can you give another review

Co-authored-by: Navaron Bracke <[email protected]>
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Feb 11, 2026
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Feb 11, 2026
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Feb 12, 2026
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Feb 12, 2026
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Feb 12, 2026
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Feb 13, 2026
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Feb 13, 2026
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Feb 13, 2026
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Feb 14, 2026
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Feb 14, 2026
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Feb 14, 2026
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Feb 14, 2026
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Feb 15, 2026
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Feb 15, 2026
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Feb 15, 2026
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Feb 16, 2026
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Feb 16, 2026
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Feb 16, 2026
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Feb 17, 2026
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Feb 17, 2026
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Feb 17, 2026
rickhohler pushed a commit to rickhohler/flutter that referenced this pull request Feb 19, 2026
Fixes flutter#178246

This PR updates the deprecation validator error message to clarify that
the version must include a leading `v` (for example, `v1.2.3`).

It also updates the deprecation template documentation to match the
validator requirement.

No functional behavior is changed; this only improves clarity and
consistency between the validator and documentation.

---------

Co-authored-by: Navaron Bracke <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c: contributor-productivity Team-specific productivity, code health, technical debt. d: docs/ flutter/flutter/docs, for contributors framework flutter/packages/flutter repository. See also f: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[tool] Deprecations validator truncates its error message right before the required "v" prefix of the deprecation version tag

3 participants