-
Notifications
You must be signed in to change notification settings - Fork 1.7k
pub failing when using google_oauth2_client package #15709
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
Actually, this may be an interaction between the google_oauth2_client and polymer packages. Adding one or the other is fine but adding both causes the failure. |
This comment was originally written by @Fox32 I have the same problem but with the combination of spectre and polymer. This user has the same issue, too: https://github.com/johnmccutchan/spectre/issues/129 |
This comment was originally written by @Fox32 I attached my pub upgrade -v output. At the end it ouptuts: ERR : Package 'polymer' has no versions that match >=0.9.0 <0.10.0 derived from: But there are versions of polymer that match >=0.9.0 <0.10.0 . One intresting thing is the package observe, that occures very often in the output. Attachment: |
This comment was originally written by [email protected] I'm hitting this pub get error as well. How to reproduce: C:\tmp\devel>git clone https://github.com/johnmccutchan/spectre C:\tmp\devel\spectre>c:\dart\dart-sdk\bin\pub get 'polymer' depends on version >=0.9.0 <0.10.0 System is: pubspec.yaml is: name: spectre Reported here: |
The "incompatible version constraints" error is different. That's like a real version conflict that's being reported incorrectly. The reporting issue has been fixed, but I'm unsure if the fix has made it into a released SDK yet. The "connection closed" error is trickier. Mark, does this reproduce in an empty project with just polymer and google_oauth2_client in the pubspec? |
Yes it does seem to. |
I'm not sure exactly which constraint is the ultimate cause of the conflict, but I did figure out that if I remove the version constraints on: logging: any # '>=0.9.0 <0.10.0' Then pub is able to find a good set of dependencies for spectre. My guess is that it's stuck on an older version of hop or maybe unittest, that eventually ends up forcing a version of barback too old to work with your current SDK. To fix this, I think spectre just needs to upgrade itself to newer versions of its dependencies. Because pub uses barback, your Dart SDK will require certain versions of it. As you upgrade to newer Dart SDKs, that forces you to upgrade your dependencies if they ultimately end up depending on barback (which polymer does). |
I'm going to close this bug out. I think there are a few things going on here:
So, I could be wrong, but I don't think there's anything here we need to take action on (that we haven't already). If I missed something, though, please do let me know. Added WontFix label. |
So does an empty project with just polymer and google_oauth2_client in the pubspec work for you? I'm still getting the same issue with this, and have been consistently for a few days, so I can't see it being a transient networking issue. Or is this what has been fixed on bleeding edge? |
This comment was originally written by @zoechi The same for me with dart-polymer-dart-examples which has a dependency on google_oauth2_client. I suspect their 'path' dependency '<=0.10.0'. |
This comment was originally written by [email protected] I can consistently reproduce the "connection closed" error as well: C:\tmp\devel\eraseme\empty>c:\dart\dart-sdk\bin\pub get How to reproduce:
pubspec.yaml: name: empty
System: Dart Editor version 1.1.0.dev_04_00 (DEV) |
This comment was originally written by [email protected] Reproduced with newer SDK: C:\tmp\devel\eraseme\empty2>c:\dart\dart-sdk\bin\pub get #7 WhereIterator.moveNext (dart:_collection-dev/iterable.dart:416) Unhandled exception: C:\tmp\devel\eraseme\empty2> Reproduced with same steps:
pubspec.yaml: name: empty
System: Dart Editor version 1.1.0.dev_05_00 (DEV) |
OK, this looks like it's still a real problem. Re-opening. Sorry for the pain. We'll see what we can figure out. Added Triaged label. |
I can't reproduce this with the current bleeding-edge SDK (1.1.0-edge.31502). "pub get" completes successfully. It's worth noting that the FormatException is a stack trace parse error caused by issue #15920. The "connection closed" error is real, though, and I'm not sure what would cause it for one user but not others. |
Removed Priority-Unassigned label. |
This comment was originally written by [email protected] I no longer hit this issue with build 31329. |
Added CannotReproduce label. |
Confirmed, also works fine for me now on 31329. |
This issue has been moved to dart-lang/pub#789. |
When using the google_oauth2_client package (http://pub.dartlang.org/packages/google_oauth2_client) pub get/upgrade now seems to fail. This worked until recently.
I have attached the output from "pub --verbose get".
Attachment:
pub.zip (951.91 KB)
The text was updated successfully, but these errors were encountered: