bun icon indicating copy to clipboard operation
bun copied to clipboard

bun install with Gitlab repository in dependencies not working

Open DrWarpMan opened this issue 1 year ago • 7 comments

What version of Bun is running?

0.7.3

What platform is your computer?

Linux 6.4.7-arch1-1 x86_64

What steps can reproduce the bug?

  1. bun init
  2. Add Gitlab dependency like this, in package.json:
"dependencies": {
    "package": "git+ssh://[email protected]:foobar.git"
}
  1. bun install

What is the expected behavior?

Gitlab dependency should be installed without errors.

What do you see instead?

bun install v0.7.3 (a9b3d583)
  🔍 Resolving [1/1] 
error: InstallFailed cloning repository for "<package-name>"
error: "git clone" for "<package-name>" failed
error: "git clone" for "<package-name>" failed

Additional information

  1. HTTPS protocol works, SSH doesn't. git+https://gitlab.example.com/foobar.gitgit+ssh://[email protected]:foobar.git

  2. npm install works just fine.

  3. I would assume this might be an issue on Github as well, haven't tested though.

DrWarpMan avatar Aug 08 '23 19:08 DrWarpMan