Skip to content

Bun still ask for Github credential when SSH key is set up #12172

Description

@Paper-Folding

What version of Bun is running?

1.1.17

What platform is your computer?

Windows

What steps can reproduce the bug?

  1. Add ssh+git as a dependency, for example:
"my-lib": "git+ssh://git@github.com/My-Namespace/my-lib.git#1.0.0"
  1. Note that SSH key has been generated and add to git locally, i.e., these command is being executed before:
git config --global gpg.format ssh
git config --global user.signingkey "C:\Users\[my-username]\.ssh\id_ed25519.pub"
  1. Run bun install
  2. A "Connect to Github" dialog will appear first:
    image
  3. Close the dialog manually and "The string binding is invalid" error dialog will show:
    image
  4. Close the error dialog again and I'm using vscode, vscode will ask me for password, so I skip with esc key
  5. Finally, bun will install the dependency successfully via SSH key.

The problem is, the dialog in step 5 and 6 should not appear. When I'm using yarn before, this issue does not exists.

What is the expected behavior?

The dialog in step 5 and 6 above should not appear, Bun should check for SSH key first before asking for github credential.

What do you see instead?

No response

Additional information

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingbun installSomething that relates to the npm-compatible client

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions