-
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
implement --packages flag #27267
Comments
From @jmesserly on July 26, 2016 22:31 FYI to @nex3 |
From @nex3 on July 27, 2016 0:59 Note that if dart-lang/test#414 lands before this is fixed, it'll break dart-lang/test#327. |
BTW, we seem to be somewhat broken right now due to removal of packages folder (and/or changes to how these resolvers work in Analyzer) |
Happy to have a discussion if I can help in any way. |
What would be really awesome is if there was some API that handled command line options & configuration for the package resolvers (and even more awesome, Dart SDK resolvers). at one point I had tried https://codereview.chromium.org/2188033002/ but it seemed unclear what semantics to implement given that DDC is a modular compiler without an "entrypoint", and I think my logic was a bit different than analyzer_cli (which itself can be a bit different in "build mode" vs normal mode) |
Agreed. We don't have that today, but should work on it.
There is some higher-level API that I can point you to. It isn't stable, so I don't want a lot of users, but it might make your life easier. Happy to talk off-line. |
@vsmenon were you looking into a similar issue? |
yes, need to get back to it. :-) what breakage are you seeing? |
|
the folder I was standing in does not have a ".packages" or a "packages/" |
basically it seems like we crash without "packages/", which is going away and we don't support ".packages" ... seems problematic :) |
The crash part should be fixed as part of this CL: https://codereview.chromium.org/2371113004/ Our tests appear to seamlessly pick up .packages now as well. |
Note, this should be done as part of #27511 - closing this in favor of that. |
From @jmesserly on July 26, 2016 22:31
we need to support package specs :)
Copied from original issue: dart-archive/dev_compiler#607
The text was updated successfully, but these errors were encountered: