bun
bun copied to clipboard
bun install with Gitlab repository in dependencies not working
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?
-
bun init
- Add Gitlab dependency like this, in
package.json
:
"dependencies": {
"package": "git+ssh://[email protected]:foobar.git"
}
-
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
-
HTTPS protocol works, SSH doesn't.
git+https://gitlab.example.com/foobar.git
✅git+ssh://[email protected]:foobar.git
❌ -
npm install
works just fine. -
I would assume this might be an issue on Github as well, haven't tested though.