Open jonblatho opened 5 days ago
Ahh, quick update — when I thought it was hanging, it wasn't. I was running this in the VS Code terminal and it was prompting me for an HTTP password at the top of the window where it failed to catch my eye. It's not being resolved as SSH.
What version of Bun is running?
1.1.17+bb66bba1b
What platform is your computer?
Darwin 23.5.0 arm64 arm
What steps can reproduce the bug?
"my_module": "git+ssh://my.gitlab.instance.com/path/to/repo.git#some-tag"
bun install
.git+ssh://git@my.gitlab.instance.com/path/to/repo.git#some-tag
bun install
What is the expected behavior?
Git repository should be cloned over SSH successfully.
What do you see instead?
It depends.
If I do not include the username
git
in the dependency URL — it should be used anyway on that hostname, per my~/.ssh/config
file — cloning the repository fails with the following message:If I add the username
git
into the URL as suggested in step 3 above, the package manager seems to hang. Here's about two minutes' worth ofbun install --verbose
output, which might be important with the variable number ofResolving [1/1]
lines between lines that don't include that:I killed it manually because it shouldn't take that long to clone this rather small repo. I've been able to find workarounds generally for private Git repo issues, but I've yet to find one for this one.
Additional information
The repository it's trying to load definitely exists. Yarn and NPM are able to install the above without issue, and
git clone
for the repository over SSH works perfectly. Removing the tag portion of the URL doesn't help.My
~/.ssh/config
file instructs SSH to use the usergit
with this hostname by default, e.g.:so specifying
git@
in the URL shouldn't be necessary and definitely shouldn't cause differing behavior.