-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
depend_on_referenced_packages
triggers falsely on virtual flutter_gen
package
#58690
Comments
@mit-mit @pq @srawlins @jonahwilliams This is currently blocking for rolling the new lints version 2.0 into Flutter. We either need to exclude this lint from the package or come up with a quick fix. Outside of hardcoding an exception into the lint rule itself, I don't see many options, though... |
/fyi @jakemac53 |
😞 ya this package causes issues for build_runner and I think pub itself as well had some problems with it modifying the package config. We really should change how it works, but in the meantime a hack in the lint can suffice. |
OK. I've got a "fix" out in dart-lang/linter#3309. I can roll this with some fixes for |
Thank you! |
@goderbauer Is there a tracking issue to resolve the question of whether it's appropriate to special-case |
@bwilkerson I filed flutter/flutter#102983 to start a discussion for that. |
Excellent. Thanks @goderbauer! |
When a flutter developer adds internationalization to their app as explained in https://docs.flutter.dev/development/accessibility-and-localization/internationalization#adding-your-own-localized-messages it generates a virtual
flutter_gen
package that the developer has to import in their app (see examples on the linked page). That package does not show up in thepubspec.yaml
, but thedepend_on_referenced_packages
complains about it missing in there.The
flutter_gen
package is made available by a rewrite of the package config file. It's a little suspect, but that's what we have right now. Long-term we can hopefully replace this with a macro or something.In the short-term we need to fix the lint to not complain about this non-existent dependency.
The text was updated successfully, but these errors were encountered: