Skip to content
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

Add pub command to list local paths to dependencies #12354

Closed
munificent opened this issue Aug 9, 2013 · 4 comments
Closed

Add pub command to list local paths to dependencies #12354

munificent opened this issue Aug 9, 2013 · 4 comments
Assignees
Labels
type-enhancement A request for a change that isn't a bug

Comments

@munificent
Copy link
Member

When the analyzer sees a "package:" import, it needs to find the local physical path to that file. Currently, it relies on "packages" directories to resolve these, but that means pub has to set up those directories and symlinks.

It would be nice if pub could just tell the analyzer where the packages are. After some discussion our current plan is to add a command to pub. This command will output a JSON map describing the local path to the root directory for each package that an application depends on. Like:

{
  "foo": "/local/path/to/foo",
  "bar": "../bar"
  ...
}

This will use whatever information is currently in the lockfile for the entrypoint package to determine what to print. If there is no lockfile, it will probably just fail with an error.

@munificent
Copy link
Member Author

Added Started label.

@munificent
Copy link
Member Author

@munificent
Copy link
Member Author

Added Fixed label.

@DartBot
Copy link

DartBot commented Jun 5, 2015

This issue has been moved to dart-lang/pub#612.

@kevmoo kevmoo added type-enhancement A request for a change that isn't a bug and removed priority-unassigned labels Mar 1, 2016
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-enhancement A request for a change that isn't a bug
Projects
None yet
Development

No branches or pull requests

3 participants