-
Notifications
You must be signed in to change notification settings - Fork 412
Upgrade to build_runner 0.7 #90
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
Note: Using git dependencies to send this early - will publish build_runner before submitting. - Update dependencies - Add a `build.yaml` in `json_serializable` to expose a builder that is applied automatically to dependents of this package. - Add a `builder.dart` to expose a `BuilderFactory`. - Add a `build.yaml` in `example` to configure the header and keep the same behavior as the manual build script. - Update the README to use the new approach. - Keep manual build scripts for `json_serializable` since it does strange stuff. Update to the `applyToRoot` approach.
@kevmoo - build_runner latest is dev only SDK. Not sure how you feel about dropping travis testing for stable SDK... |
Well if it's not going to work, we should probably stop testing it 😄 |
@@ -8,6 +8,7 @@ environment: | |||
dependencies: |
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.
@natebosch – should update the SDK dependency then, too? Right?
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.
IMO it shouldn't be a requirement. It's pub's job to take dependency SDK constraints into account when version solving.
If I'm only using stuff from package:foo
version 1.0.0
but my dependency tightened the constraint to 1.1.0
I don't go hunting for that information and bump tighten my constraint too - that's what the version solve is for. From my perspective the SDK constraint is just like a package constraint in this way.
In practice I think it's fine to do it since we're not testing on older SDKs so we're not confident that we haven't suddenly stopped working for reasons around this package.
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.
Done
@@ -0,0 +1,8 @@ | |||
builders: |
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.
We should add a # some link here
comment to point source diggers to the right spot to understand how this is suppose to work?
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.
Done
@@ -5,50 +5,46 @@ | |||
import 'dart:async'; |
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.
@natebosch – want to update to the new run
method and go from 3 -> 1 file? Or in a follow-up?
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.
Done
@@ -0,0 +1,12 @@ | |||
targets: |
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.
Ditto – add a # FYI ready about build.yaml here...
line at the top...
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.
Done
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.
Nice!
Note: Using git dependencies to send this early - will publish
build_runner before submitting.
build.yaml
injson_serializable
to expose a builder that isapplied automatically to dependents of this package.
builder.dart
to expose aBuilderFactory
.build.yaml
inexample
to configure the header and keep thesame behavior as the manual build script.
json_serializable
since it doesstrange stuff. Update to the
applyToRoot
approach.