You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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...)
Originally opened as dart-lang/sdk#3493
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
The text was updated successfully, but these errors were encountered: