-
Notifications
You must be signed in to change notification settings - Fork 226
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
Hosted dependencies problem in 1.14.0 #1386
Comments
From @kevmoo on February 1, 2016 18:25 @nex3 Did pub change anything in how it works with the server in 1.14? |
@nex3 @kevmoo One thing to note in the original bug report is that the first example with the old version of pub is actually not downloading anything, it uses a cached version of the package, whereas the second version is downloading something. Let me know if I should help debugging this. |
These are the outputs of both 1.13.2 and 1.14.0 after a pub cache cleaning. 1.13.2
1.14.0
|
I haven't had time to dive into this yet, but based on the difference in behavior between pub versions I suspect it's a bug in the pub client rather than the server. @fromlabs Just in case, can you manually request |
|
I've tracked this down; it is indeed a bug in the pub client. I'll have a fix out today or tomorrow. |
This sets the stage for adding tests for #1386. R=rnystrom@google.com Review URL: https://codereview.chromium.org//1664563002 .
From @fromlabs on January 30, 2016 11:37
I'm using hosted dependencies in my pubspec.yaml file running an instance of pub_server server but after 1.14.0 version pub commands stop working.
I reproduced the problem with this pubspec.yaml (my_pub_server:9091 is just an example):
If I run
pub --trace -v update
with 1.13.2 version, the dependency is resolved correctly:instead if I run with the pub command with the 1.14.0 version, pub resolves correctly:
http://my_pub_server:9091/api/packages/sqlbuilder
but then downloads the package from the wrong server:
https://pub.dartlang.org/packages/sqlbuilder/versions/1.3.4.tar.gz
Below is the error output of
pub --trace -v update
with 1.14.0 version:Copied from original issue: dart-lang/sdk#25621
The text was updated successfully, but these errors were encountered: