Pub package manager does not handle native extensions #250
Labels
closed-duplicate
Closed in favor of an existing report
type-bug
Incorrect behavior (everything from a crash to more subtle misbehavior)
<img src="https://avatars.githubusercontent.com/u/4905639?v=3" align="left" width="96" height="96"hspace="10"> Issue by whesse
Originally opened as dart-lang/sdk#6290
I don't think that pub will correctly manage and download the native extension shared libraries for a Dart extension. These are typically dart libraries with an import statement like
import("dart-ext:foo"),
which makes the standalone Dart binary load a library named foo.dll, libfoo.so, or libfoo.dylib, and run the initialization routine. To distribute these packages, pub would have to download the appropriate native library to the package cache.
This is also blocked on proper handling of the package: prefix in the URL of the importing library, when figuring out the path of the native shared library from the (relative) path in the dart-ext: import. This is issue dart-lang/sdk#6264.
The text was updated successfully, but these errors were encountered: