-
Notifications
You must be signed in to change notification settings - Fork 183
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
Update to source_gen 0.9.0 #464
Conversation
Allows using `built_value` along side other `source_gen` based generators that output to `.g.dart` part file. This is a breaking change because the "header" can no longer be supported. - Switch to `SharedPartBuilder` and add the required part ID argument. - Move builds to the cache and update the new generated extension. - Apply the `source_gen|combining_builder` to merge part files back into a `.g.dart` file. - Remove the example `build.yaml` since it was only setting a `header`. - Update test cases to keep using it as if it was a standalone part builder.
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.
Thanks! Really nice to see this support arriving.
@@ -1,5 +1,5 @@ | |||
name: built_value_generator |
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.
Please run tool/use_local_deps and update the PR; it will update all the yaml files to use the unreleased version, so the presubmit results are meaningful.
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.
ran the tool and regenerated the example files.
Thanks! |
What can |
@zoechi - I filed an issue with the reasoning and a potential solution at dart-lang/source_gen#370 |
Allows using
built_value
along side othersource_gen
basedgenerators that output to
.g.dart
part file. This is a breaking changebecause the "header" can no longer be supported.
SharedPartBuilder
and add the required part ID argument.source_gen|combining_builder
to merge part files back intoa
.g.dart
file.build.yaml
since it was only setting aheader
.builder.
This change is