-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Adding dart build #51165
Comments
In the context of I've prototyped some It would be worth considering other things than just native assets for a |
The "needs a separate pub-get step"-part is tracked here: #50422 |
Imo it would be better to not introduce another top level command which has a lot of overlap with an existing command. Can this be an option to |
|
could |
I don't know how I feel about |
build is consistent with other modern tools,e.g cargo,golang,please keep it |
Possibly, we would have a kernel file with dylibs next to it, and the kernel file containing the (relative) paths of the dylibs.
The commands currently take an optional output filename as parameter. That doesn't work with bundles, that parameter would need to be a directory. Adding a flag leading to a file/directory differents in output parameter and actual output might be surprising.
How we build artifacts entirely depends on how we run. Dart doesn't have cross compilation (currently), so that's not on the table yet. But Therefore one would need to specify what to build when doing |
@mit-mit should that then be Otherwise it's going to be |
Should we deprecate (FWIW: |
deprecate compile is a good idea,no others use this keyword to build |
In e1ae1b4, we have landed support for this in Dart behind an experimental flag. On the main branch (and dev releases) this feature is available via If you're not using the native assets feature (#50565), the only difference between Please note that we will probably do breaking changes to how this feature works before we go to non-experimental. |
dart run will automatically do pub-get and compile and run, which is nice and similar to cargo-run or go-run.
dart compile exe -- needs to specify entry point and needs a separate pub-get step, tedious, but fine.
since dart-run respects pubspec.yaml and does what it needs to do, can we add
dart build
that also respects pubspec.yaml and auto builds some default output, e.g. exe, or multiple output, e.g. exe and aot, whatever is the most popular ones as the defaults?this way the dart toolchain is also very consistent with others, e.g. rust and golang as mentioned above.
Thanks.
The text was updated successfully, but these errors were encountered: