dart-lang / pub

The pub command line tool
https://dart.dev/tools/pub/cmd
BSD 3-Clause "New" or "Revised" License
1.04k stars 229 forks source link

Pub failing to resolve hosted dependency #1289

Closed Andersmholmgren closed 9 years ago

Andersmholmgren commented 9 years ago
>pub --version
Pub 1.11.0

I have added a dependency to mojito as follows

dependencies:
  mojito: '^0.3.0'

When I run pub get I get

pub get
Resolving dependencies... (4.5s) 
Package shelf_auth has no versions that match >=0.6.3 <0.6.4 derived from:
- mojito 0.3.0 depends on version >=0.6.3 <0.6.4

However, 0.6.3 is in pub (https://pub.dartlang.org/packages/shelf_auth)

pubissue

nex3 commented 9 years ago

I can't reproduce this. With Dart 1.11.0, I get the following dependencies:

$ pub --version
Pub 1.11.0
$ pub get
Resolving dependencies... (5.6s)
+ bignum 0.0.6
+ cipher 0.7.1
+ collection 1.1.1
+ concepts 0.2.0
+ constrain 0.2.4
+ crypto 0.9.0
+ dart_jwt 0.4.1
+ either 0.1.8
+ fixnum 0.9.1+2
+ hateoas_models 0.1.4
+ http 0.11.2
+ http_exception 0.1.0
+ http_parser 0.0.2+7
+ logging 0.9.3 (0.11.1 available)
+ matcher 0.12.0+1
+ mime 0.9.3
+ mojito 0.3.0
+ oauth 0.3.0
+ option 1.1.0
+ path 1.3.5
+ petitparser 1.4.3
+ quiver 0.20.0 (0.21.4 available)
+ shelf 0.6.1+2
+ shelf_auth 0.6.3
+ shelf_auth_session 0.4.4
+ shelf_bind 0.8.5
+ shelf_exception_handler 0.1.0
+ shelf_oauth 0.6.4
+ shelf_path 0.1.6
+ shelf_proxy 0.1.0+2
+ shelf_response_formatter 0.1.0
+ shelf_rest 0.2.1
+ shelf_route 0.13.2
+ shelf_static 0.2.2
+ source_span 1.1.2
+ stack_trace 1.3.3
+ string_scanner 0.1.3+1
+ uri 0.10.0
+ utf 0.9.0+2
+ uuid 0.4.1 (0.5.0 available)
+ xml 2.3.2
Changed 41 dependencies!

Perhaps you have additional dependencies that you didn't mention here?

As a side-note, the misleading error message is being tracked by #912.

Andersmholmgren commented 9 years ago

ah yes it was a case of misleading error message