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
Error when running 'pub install' with git source #6847
Milestone
Comments
Added Accepted label. |
Added this to the M2 milestone. |
This comment was originally written by ladicek@gmail.com I believe I ran into this as well. The error only appeared when the package wasn't in local Pub cache yet. |
Added Started label. |
Set owner to @munificent. |
Added Fixed label. |
This issue has been moved to dart-lang/pub#293. |
This issue was closed.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This issue was originally filed by jame...@gmail.com
I created a pubspec.yaml file like this:
name: timetracker
description: A sample application
dependencies:
dartwebserver:
git: git@bitbucket.org:jamesots/dartwebserver.git
mongo_dart: any
And then ran 'pub install':
james@bruce:~/devroot/timetracker$ pub install
Resolving dependencies...
Git error. Command: git clone --mirror /home/james/devroot/timetracker/git@bitbucket.org:jamesots/dartwebserver.git /home/james/.pub-cache/git/cache/dartwebserver-accccad788b4214c4af61e927f0766ed344b3817
Permission denied (publickey).
fatal: The remote end hung up unexpectedly
I traced this down to these lines in dart-sdk/util/pub/git_source.dart
if (!URL_LIKE.hasMatch(from)) {
from = getFullPath(from);
}
If I comment out those lines then it starts to work again.
I'm using r15130 version of Dart, and Ubuntu 12.04.
The text was updated successfully, but these errors were encountered: