-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
bun install with Gitlab repository in dependencies not working #4068
Comments
Git supports two URL syntaxes for SSH cloning:
So, in a way, it makes perfect sense for Bun not to support In my opinion, it makes sense to incorporate a Lines 666 to 684 in 3a9a6c6
|
https://docs.npmjs.com/cli/v9/commands/npm-install#description
Here are the formats that NPM supports. |
Is there any feedback on this? v1.0.5 still cannot clone private
Is it perhaps trying to look at Github instead of Gitlab? |
I tested the latest version (1.0.6) , and the public repos seem to work, but I can not access my private repos. :-/ |
That seems like Bun install is not using the ssh key. id_rsa gets automatically used in other pm’s. @Jarred-Sumner it should also handle for example (~/.ssh/config):
|
I have the same issue, bun does not use my public key to download from a git repo. Resulting in this mess
My package.json looks like this
Another note is, the terminal stops displaying any characters you type, cause it somewhere disables the output, but never enables it again after i fails. |
Obligatory 6 month follow-up. Installing private GitLab repos with bun + shh (using any ssh URL) does not work. The installer prompts for the ssh password, when it should be using the host's SSH key. 🔑 |
Any news @Bun team? |
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
package.json
:bun install
What is the expected behavior?
Gitlab dependency should be installed without errors.
What do you see instead?
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.
The text was updated successfully, but these errors were encountered: