Skip to content
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

Closed
DartBot opened this issue Nov 21, 2012 · 8 comments
Closed

Error when running 'pub install' with git source #6847

DartBot opened this issue Nov 21, 2012 · 8 comments
Assignees
Milestone

Comments

@DartBot
Copy link

DartBot commented Nov 21, 2012

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.

@dgrove
Copy link
Contributor

dgrove commented Nov 21, 2012

Added Area-Pub, Triaged labels.

@munificent
Copy link
Member

Added Accepted label.

@munificent
Copy link
Member

Added this to the M2 milestone.

@DartBot
Copy link
Author

DartBot commented Nov 28, 2012

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.

@munificent
Copy link
Member

Added Started label.

@munificent
Copy link
Member

Set owner to @munificent.

@munificent
Copy link
Member

Added Fixed label.

@DartBot
Copy link
Author

DartBot commented Jun 5, 2015

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants