Remove synthetic package qualifier for flutter: generate: error.#163145
Remove synthetic package qualifier for flutter: generate: error.#163145auto-submit[bot] merged 3 commits intoflutter:masterfrom
synthetic package qualifier for flutter: generate: error.#163145Conversation
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... |
|
😓 |
|
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.