-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Add basic codegen app to be used for integration testing and benchmarks #27257
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
|
cc @yjbanov PTAL |
|
Adding @zanderso for tool changes |
|
Unless anyone has any comments, I will land this tonight after the build is green |
yjbanov
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.
I only have some nits. LGTM.
| import 'runner.dart' as runner; | ||
| import 'src/base/context.dart'; | ||
| // The build_runner code generation is provided here to make it easier to | ||
| // avoid introducing the dependency into google3. |
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.
nit: This aspect might be useful to others companies, so I'd phrase it as "avoid introducing the dependency into build systems that use their own codegen methods, such as Google's internal infrastructure".
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.
This is only an issue for google3 because the build packages are not synced. In theory it could run...
| verboseHelp: verboseHelp); | ||
| verboseHelp: verboseHelp, | ||
| overrides: <Type, Generator>{ | ||
| // The build runner instance is not supported in google3. |
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.
same nit here
zanderso
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

generatecommand, which runs code generation without compiling to kernel.Basic flutter app which brews coffee on button press, requires dart inject code generation to run.
Work towards #27141