-
Notifications
You must be signed in to change notification settings - Fork 67
[native_assets_builder] Rename build.dart
to hook/build.dart
#823
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
Comments
It will be easier to roll stuff if we first land |
Note from offline discussion: We might want to stick with |
I still prefer the more general names. We may only know of a single conflict now, but having a hard coded name is a very brute mechanism, so I think it should be more specific. |
build.dart
to build_assets.dart
build.dart
to hook/build.dart
(moved list to top) |
* #823 Notes: * Should keep existing toplevel `build.dart` scripts working by trying both `hook/build.dart` and `build.dart`. * Does not migrate the examples yet, so that we don't have to do `breaking-change` is true in the ci. * Will do this after rolling into Dart. * `native_toolchain_c` had a `this.dartBuildFiles = const ['build.dart'],`. Updating that to `hook/build.dart` would not work for unmigrated scripts, because files listed as dependencies that don't exist will also trigger a rebuild, e.g. it is considered deleting a file. It would also break on any kind of invocation from `hook/link.dart`. So, I've removed the default value for now. It's not pretty though. Ideas @mosuem?
* #823 Notes: * Should keep existing toplevel `build.dart` scripts working by trying both `hook/build.dart` and `build.dart`. * Does not migrate the examples yet, so that we don't have to do `breaking-change` is true in the ci. * Will do this after rolling into Dart. * `native_toolchain_c` had a `this.dartBuildFiles = const ['build.dart'],`. Updating that to `hook/build.dart` would not work for unmigrated scripts, because files listed as dependencies that don't exist will also trigger a rebuild, e.g. it is considered deleting a file. It would also break on any kind of invocation from `hook/link.dart`. So, I've removed the default value for now. It's not pretty though. Ideas @mosuem?
With renaming script to hook. The question is, is the Since So I'm going to call a package's Ready for another round of bike shedding! cc @mosuem |
The changes rolled into the Dart SDK, so we can now update the examples. (The changes have not yet been rolled into Flutter, so the examples will fail in Flutter until we do.) * #823
This has rolled into Flutter in: |
Uh oh!
There was an error while loading. Please reload this page.
We have settled on
hook/build.dart
as the place for thebuild.dart
"script"/"hook".hook/
directory 🪝 sdk#54334If we fall back to
build.dart
for the time being, we have less rolling issues.The example that's run against the Dart SDK will break for the time being though.
native_assets_builder
to look forhook/build.dart
instead ofbuild.dart
. For now: fall-back tobuild.dart
ifhook/build.dart
does not exist, to not immediately break everyone.DynamicLoadingBundled
anddryRun
in Flutter #1049)The text was updated successfully, but these errors were encountered: