Skip to content

Request: a way to access the contents of a .packages file, if provided #24211

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

Closed
sethladd opened this issue Aug 26, 2015 · 2 comments
Closed
Labels
area-core-library SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries. library-io library-isolate
Milestone

Comments

@sethladd
Copy link
Contributor

The Dart platform now supports a .packages file as a way to specify a mapping between a package name and a location where the package's lib contents are stored.

Dart programs would like access to this map, in order to introspect package contents at runtime.

This request is for a new API added to the Isolate class. Something like this strawman:

class Isolate {
  /// Returns a map of package name to resolved URIs,
  /// if the runtime was configured with a mapping. May
  /// return null.
  ///
  /// Generally, Dart applications are configured with
  /// either a packageRoot or a packageMap, though
  /// both may return non-null values.
  static Map get packageMap;
}
@sethladd sethladd added area-core-library SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries. library-io library-isolate labels Aug 26, 2015
@sethladd sethladd added this to the 1.13 milestone Aug 26, 2015
@sethladd
Copy link
Contributor Author

cc @iposva-google

@sethladd
Copy link
Contributor Author

Dupe of #24022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-core-library SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries. library-io library-isolate
Projects
None yet
Development

No branches or pull requests

1 participant