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

git+ssh install protocol is not used correctly #1847

Closed
sateffen opened this issue Nov 15, 2016 · 1 comment
Closed

git+ssh install protocol is not used correctly #1847

sateffen opened this issue Nov 15, 2016 · 1 comment

Comments

@sateffen
Copy link

Do you want to request a feature or report a bug?

Bug

What is the current behavior?

Yarn is not capable of installing git dependencies

If the current behavior is a bug, please provide the steps to reproduce.

  1. Add a git dependency to package.json (looking like "myMod": "git+ssh://git@github.....git" (important is git+ssh)
  2. type yarn to install all packages
  3. See yarn erroring, because it's trying git clone ssh://git@....git, without git+

What is the expected behavior?

To install the dependency with the correct protocol (git+ssh), just like NPM or git itself

Please mention your node.js, yarn and operating system version.

Windows 7, yarn v0.17.0, node v6.9.1, git version 2.9.0.windows.1

Additional Note

Even though I opend this ticket, which was closed due to this pull request, which should fix the problem, but it's still there. Installing git dependencies with yarn still doesn't work. Because the problem persists I "reopened" the issue.

Console output (slightly modified, because of sensitive information):

>yarn
yarn install v0.17.0
info No lockfile found.
warning myproject@0.0.0: No license field
[1/4] Resolving packages...
error Command failed.
Exit code: 128
Command: git
Arguments: clone ssh://git@internalgit.com/somedependency.git ...\AppData\Local\Yarn\cache\.tmp\8fd00943084f8824e195e7cd50c344a6
Directory: ...\projects\myproject
Output:
Cloning into '...\AppData\Local\Yarn\cache\.tmp\8fd00943084f8824e195e7cd50c344a6'...
ssh: Could not resolve hostname internalgit.com: Name or service not known
fatal: Could not read from remote 

But the package.json contains "somedependency": "git+ssh://git@internalgit.com/somedependency.git". NPM itself does everything right, the git+ stays, but without the git+ it doesn't work.

Cheers

@wyze
Copy link
Member

wyze commented Nov 15, 2016

Duplicate #513.

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

2 participants