Skip to content

Pub: dependency on https://host/dir/ installs into the wrong directory #3493

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

Closed
DartBot opened this issue Jun 11, 2012 · 4 comments
Closed
Assignees
Milestone

Comments

@DartBot
Copy link

DartBot commented Jun 11, 2012

This issue was originally filed by [email protected]


Paths ending in slash don't install properly - the git repo is checked out into packages/ instead of packages/foo/.
In particular, code.google.com recommends repo URLs ending in /.

I think it's detecting the repo name as the empty string, and so running 'git clone $repo packages/$reponame' does the wrong thing.

(Also, shouldn't it be naming the checkout dir after the dependency name in my pubspec? Those are guaranteed to be unique...)

e.g.

$ cat pubspec.yaml
dependencies:
  googleapis:
    git: https://code.google.com/p/foo/

$ pub install
Cloning into '/usr/local/google/home/sammccall/gits/dartapiarysamples/packages'...
Dependencies installed!

$ ls -a packages
. .. .git

@dgrove
Copy link
Contributor

dgrove commented Jun 11, 2012

cc @munificent.
Set owner to @nex3.
Added Area-Pub, Triaged labels.

@munificent
Copy link
Member

Added this to the M1 milestone.

@nex3
Copy link
Member

nex3 commented Aug 24, 2012

Fixed by r11343.


Added Fixed label.

@DartBot
Copy link
Author

DartBot commented Jun 5, 2015

This issue has been moved to dart-lang/pub#46.

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

4 participants