-
Notifications
You must be signed in to change notification settings - Fork 225
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
Version solver should skip versions with unparseable pubspecs #1479
Comments
This all seems like the expected behavior to me. If you look at the |
@nex3 I believe the issue is that the user did nothing but updated Dart and now things are broken. The publisher of |
Hmm, I suppose pub should probably skip versions with unparseable pubspecs rather than crashing. |
Looking at this more, I don't think it's something we can do efficiently on the client side. We don't consume pubspecs directly while version solving, we consume JSON from pub.dartlang.org that's derived from the pubspecs. We'll need the server to mark these packages as invalid somehow. |
I've filed dart-lang/pub-dev#62 to track the necessary change to pub.dartlang.org. I'm going to leave this open for now because we should at least be resilient to busted pubspecs in the local pub cache, especially when running with |
Rejecting duplicate keys breaks download of existing Dart packages. BUG=dart-lang/pub#1479 R=lrn@google.com CC=mit@google.com,nweiz@google.com,kustermann@google.com Review URL: https://codereview.chromium.org/2548313002 .
Rejecting duplicate keys breaks download of existing Dart packages. BUG=dart-lang/pub#1479 R=lrn@google.com CC=mit@google.com,nweiz@google.com,kustermann@google.com Review URL: https://codereview.chromium.org/2548313002 .
In particular, "pub get --offline" and "pub cache repair" shouldn't choke when there are parse failures in the version cache. See #1479
In particular, "pub get --offline" and "pub cache repair" shouldn't choke when there are parse failures in the version cache. Closes #1479
In particular, "pub get --offline" and "pub cache repair" shouldn't choke when there are parse failures in the version cache. Closes #1479
From @stephan-gruen on December 1, 2016 11:2
sdk 1.21.0-dev.11.0
Windows 7 / WebStorm 2016.3.1
All works well with the stable sdk version 1.20.1, but I'm not able to use the latest dev sdk version (I tryed 9 and 11) anymore, because pub throws "Duplicate mapping key" if polymer_elements are used.
Not really sure if this is a sdk or a pub error or what to do or update to solve it.
Pub:
yaml:
If you do not specify a version for polymer_elements pub will simply get the first version:
Copied from original issue: dart-lang/sdk#27956
The text was updated successfully, but these errors were encountered: