-
Notifications
You must be signed in to change notification settings - Fork 229
Flutter SDK dependency support for <flutter>/bin/cache/pkg #1775
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
Comments
Do the packages in |
I don't think so; @Hixie ? |
The version on sky_engine has never been updated as far as I'm aware. IMHO we should just drop it, not add any more dependencies on it. FWIW, we're about to drop all the version numbers in the flutter packages in the framework repo too. (It doesn't make sense to have these version numbers since the version will eventually change with every commit.) (see go/flutter-release) Also currently the SDK dependency check is broken because we're publishing the version with the wrong file name, but we're planning on fixing that in the coming days. |
Does this mean we should close out this issue? |
I don't know what led to this issue, so there may be underlying issues that need resolving? But yeah, as described I would recommend probably not supporting this. |
I believe the only motivating case was |
@Hixie, flutter/flutter#13559 was the motivation for this. So we no longer depend on |
I assume we still depend on |
Sure, but this bug wasn't meant to help with resolving the version, it was meant to help resolve the location of the package. |
The |
Re-opening to track there is still work to handle the location. Removed versioning from the top-most comment. |
@Hixie, Natalie suggested above that rather than supporting a new |
Seems fine to me. I think if we wanted to make it a bit less magical then maybe we would have it only look in Let's make sure we document this thoroughly either way. :-) |
It is, more or less. The semantics of the SDK source are essentially "find these packages in an SDK-specific way", where that way may differ from SDK to SDK.
The current docs just talk about the Flutter SDK "containing packages" without being explicit about where in the SDK those packages live. Is that enough? |
It doesn't necessarily have to be on the dartland.org Web site, but I think we should have some docs somewhere (maybe in the flutter pubspec.yaml where this mostly comes to a head) that talks about how pub is picking where to look, and so on. |
Specifically, imagine you and I and everyone else here move on to other things, and three years from now someone has to debug why this is not working any more. They're going to need an explanation of what on earth all this |
I'll be sure to document the behavior in the pub source. As you say, it's probably also a good idea to document it on the Flutter side somewhere. |
Sounds good. Maybe on the Flutter side just have a link to the relevant source on the pub side, no need to document it twice (since then one is bound to get out of sync). |
|
Pub currently supports resolving packages located in
<flutter>/packages
when using an SDK dependency:This bug requests that it additionally also looks for matching packages in
<flutter>/bin/cache/pkg
when using asdk_cache
dependency:The text was updated successfully, but these errors were encountered: