-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Remove synthetic package qualifier for flutter: generate: error.
#163145
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
Conversation
Not sure I follow. If you opt out of synthetic package for gen-l10n, then it would generate into your source directory. Not specifying |
The presence of (https://docs.flutter.dev/tools/pubspec): # pubspec.yaml
flutter:
generate: true... means enables generation of localized strings from arb files. It is not directly connected to |
|
oh.... interesting... |
|
😓 |
jonahwilliams
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM?
|
Apparently we have tests that relied on the behavior of this error never showing up 🤦🏼 |
|
Updated! It was just 2 call sites, I might have slightly over-exagerrated. |
|
autosubmit label was removed for flutter/flutter/163145, because - The status or check suite Google testing has failed. Please fix the issues identified (or deflake) before re-applying this label. |
generateLocalizationsshould fail (flutter gen-l10n) ifflutter: generate:does not exist.The previous logic was faulty, because it was totally possible to opt-out of synthetic packages (i.e. in a
l10n.yamlfile), but still not be specifyingflutter: generate:, which I believe is supposed to still be an error.This came up in #160289 as
flutter config --explicit-package-dependenciesis enabled by default, as the error is no longer thrown. Made a few other small test forward-fixes that otherwise would break with the switch (but are expected) as well.