[hooks] Remove unused meta dependency (fixes Flutter compat) - #3553
Merged
dcharkes merged 1 commit intoAug 14, 2026
Merged
Conversation
The `hooks` package lists `meta: ^1.19.0` as a dependency but never imports `package:meta` anywhere in `lib/` or `test/`. This unused dependency causes version conflicts for Flutter packages that use build hooks, because Flutter stable (3.41.9) pins `meta 1.17.0` via `flutter_test`, which is incompatible with `meta ^1.19.0`. Fixes dart-lang#3551
Collaborator
|
I suppose we removed (And we bumped to 1.19 in this repo due to |
dcharkes
approved these changes
Aug 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The
hookspackage listsmeta: ^1.19.0as a dependency but never importspackage:metaanywhere in itslib/ortest/directories.This unused dependency causes version conflicts for Flutter packages that use build hooks:
Flutter stable (3.41.9, Dart 3.11.5) pins
meta 1.17.0viaflutter_test. Since pub.dev enforces thathook/imports must be independencies(notdev_dependencies), there is no workaround — any Flutter package using build hooks is blocked.Verification
Note:
hooks_runnerlegitimately usespackage:meta— this PR only removes it fromhooks.Fix
Remove
meta: ^1.19.0frompkgs/hooks/pubspec.yamldependencies.Fixes #3551