-
Notifications
You must be signed in to change notification settings - Fork 52
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
[native_assets_builder] Don't cache hook invocations if env vars change #1759
Conversation
PR HealthBreaking changes ✔️
Changelog Entry ✔️
Changes to files need to be accounted for in their respective changelogs. API leaks ✔️The following packages contain symbols visible in the public API, but not exported by the library. Export these symbols or remove them from your publicly visible API.
License Headers ✔️
All source files should start with a license header. Unrelated files missing license headers
|
@HosseinYousefi I don't know how to exclude the parent PR from the diff, but you could simply look at the last commit. |
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.
With comments addressed: lgtm
pkgs/native_assets_builder/lib/src/build_runner/build_runner.dart
Outdated
Show resolved
Hide resolved
@mkustermann We need an actual +1 to merge. 😄 |
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 with comment
This PR makes the native assets builder save the
Platform.environment
a hook is run in. Subsequent invocations check if the environment didn't change.This removes the
includeParentEnvironment
parameter everywhere. It was always set to true indartdev
andflutter_tools
(This will require a manual roll into the Dart SDK and Flutter tools.)A follow up PR should restrict the list of environment variables (#1764), this PR is about caching correctness.
Bug: