-
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
[native_assets] Support dart pub global run
#56044
Comments
Thanks for the report @lindeer! We don't have support yet for I would have expected the error message to complain that the experiment is required instead of run as if there are no native assets. Just to double check, everything works fine when doing (Also, transferring this to the Dart SDK repo, as it should be implemented there.) |
dart pub global run
@jonasfj @sigurdm What would be a good way to save the binaries for And I'm thinking, it's probably cleanest to already invoke the build hook to produce the native assets during |
yeah, everything is OK when I run |
We do precompile - except for when the package is We also support recompilation if the snapshot was compiled with a different VM. |
After some offline discussion with @jonasfj and @sigurdm, this should probably be addressed by (Instead of trying to patch what pub is currently doing.) |
now my package contains a
mylib-exe.dart
inbin
directory and in my pubspec.yaml:but after I install
dart pub global activate mylib
both--source git
or--source path
, and runmylib-exe
in cmd, report error:seems build script not triggered and .so file not generated, I edit
mylib-exe
in~/.pub-cache/bin/mylib-exe
:still not work. How should I fix it, thanks~
The text was updated successfully, but these errors were encountered: