{"action":"created","issue":{"url":"https://api.github.com/repos/yarnpkg/yarn/issues/3203","repository_url":"https://api.github.com/repos/yarnpkg/yarn","labels_url":"https://api.github.com/repos/yarnpkg/yarn/issues/3203/labels{/name}","comments_url":"https://api.github.com/repos/yarnpkg/yarn/issues/3203/comments","events_url":"https://api.github.com/repos/yarnpkg/yarn/issues/3203/events","html_url":"https://github.com/yarnpkg/yarn/issues/3203","id":222992915,"number":3203,"title":"yarn 0.23.2 unable to install from git+ssh repo","user":{"login":"cskeppstedt","id":569742,"avatar_url":"https://avatars1.githubusercontent.com/u/569742?v=3","gravatar_id":"","url":"https://api.github.com/users/cskeppstedt","html_url":"https://github.com/cskeppstedt","followers_url":"https://api.github.com/users/cskeppstedt/followers","following_url":"https://api.github.com/users/cskeppstedt/following{/other_user}","gists_url":"https://api.github.com/users/cskeppstedt/gists{/gist_id}","starred_url":"https://api.github.com/users/cskeppstedt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cskeppstedt/subscriptions","organizations_url":"https://api.github.com/users/cskeppstedt/orgs","repos_url":"https://api.github.com/users/cskeppstedt/repos","events_url":"https://api.github.com/users/cskeppstedt/events{/privacy}","received_events_url":"https://api.github.com/users/cskeppstedt/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2017-04-20T08:47:42Z","updated_at":"2017-05-02T09:43:30Z","closed_at":null,"body":"<!-- *Before creating an issue please make sure you are using the latest version of yarn.* -->\r\n\r\n**Do you want to request a *feature* or report a *bug*?**\r\n<!-- Is the feature a substantial feature request? Please use https://github.com/yarnpkg/rfcs -->\r\nbug\r\n\r\n**What is the current behavior?**\r\n\r\nWhen trying to add a dependency with the git+ssh specification, yarn is unable to read from the remote repository. The repository is an internal Bitbucket server, where the read-access is controlled via ssh keys. The previous yarn-version I used (0.21.3) could install the package. The only difference between the two examples below is the version of yarn. Everything else (ssh keys, node version, etc) is the same.\r\n\r\n<!-- If you can, provide a link to a public repository which contains the files necessary to reproduce this. -->\r\n\r\n```\r\n$ yarn add git+ssh://git@internal-stash-server:7999/prj/repo.git\r\nyarn add v0.23.2\r\n[1/4] 🔍  Resolving packages...\r\nerror Command failed.\r\nExit code: 128\r\nCommand: git\r\nArguments: clone git@internal-stash-server:7999/prj/repo.git /Users/chris.skeppstedt/Library/Caches/Yarn/v1/.tmp/b625ca2d4e9ba1f4eb42d720d250ce14\r\nDirectory: /Users/chris.skeppstedt/code/my-test-project\r\nOutput:\r\nCloning into '/Users/chris.skeppstedt/Library/Caches/Yarn/v1/.tmp/b625ca2d4e9ba1f4eb42d720d250ce14'...\r\nRepository not found\r\nThe requested repository does not exist, or you do not have permission to access it.\r\nfatal: Could not read from remote repository.\r\n\r\nPlease make sure you have the correct access rights\r\nand the repository exists.\r\ninfo Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.\r\n```\r\n\r\n**What is the expected behavior?**\r\n\r\nThe package should be installed from the git+ssh specification. Here's a working example using yarn 0.21.3.\r\n\r\n```\r\n$ yarn add git+ssh://git@internal-stash-server:7999/prj/repo.git\r\nyarn add v0.21.3\r\n[1/4] 🔍  Resolving packages...\r\n[2/4] 🚚  Fetching packages...\r\n[3/4] 🔗  Linking dependencies...\r\n[4/4] 📃  Building fresh packages...\r\nsuccess Saved lockfile.\r\nsuccess Saved 1 new dependency.\r\n└─ repo@1.0.0\r\n✨  Done in 6.28s.\r\n```\r\n\r\n**Please mention your node.js, yarn and operating system version.**\r\nnode.js: 7.9.0\r\nyarn: 0.23.2 (and 0.21.3)\r\nos: macOS Sierra 0.12.4"},"comment":{"url":"https://api.github.com/repos/yarnpkg/yarn/issues/comments/298580834","html_url":"https://github.com/yarnpkg/yarn/issues/3203#issuecomment-298580834","issue_url":"https://api.github.com/repos/yarnpkg/yarn/issues/3203","id":298580834,"user":{"login":"driesvints","id":594614,"avatar_url":"https://avatars2.githubusercontent.com/u/594614?v=3","gravatar_id":"","url":"https://api.github.com/users/driesvints","html_url":"https://github.com/driesvints","followers_url":"https://api.github.com/users/driesvints/followers","following_url":"https://api.github.com/users/driesvints/following{/other_user}","gists_url":"https://api.github.com/users/driesvints/gists{/gist_id}","starred_url":"https://api.github.com/users/driesvints/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/driesvints/subscriptions","organizations_url":"https://api.github.com/users/driesvints/orgs","repos_url":"https://api.github.com/users/driesvints/repos","events_url":"https://api.github.com/users/driesvints/events{/privacy}","received_events_url":"https://api.github.com/users/driesvints/received_events","type":"User","site_admin":false},"created_at":"2017-05-02T09:43:30Z","updated_at":"2017-05-02T09:43:30Z","body":"I can confirm that this is also broken for us. Upgrading to the latest Yarn version (0.23.3) has broken our CI builds."}}
{"actor":{"display_login":"driesvints"}}