Skip to content
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

Can no longer user SSH host alias to install module from private repo #6827

Closed
gavinhungry opened this issue Jul 18, 2023 · 1 comment · Fixed by #6832
Closed

Can no longer user SSH host alias to install module from private repo #6827

gavinhungry opened this issue Jul 18, 2023 · 1 comment · Fixed by #6832

Comments

@gavinhungry
Copy link
Sponsor

pnpm version: 8.6.8

Code to reproduce the issue:

pnpm i github:my_company/private_repo

Expected behavior:

pnpm uses the github SSH alias to authenticate via private key, and installs the module from private_repo. This was the behavior in pnpm 8.6.7. This syntax does still work for public repositories.

# ~/.ssh/config

Host github
  HostName        github.com
  User            git
  IdentityFile    ~/.ssh/my_ssh_private_key

Actual behavior:

pnpm instead prompts me for my GitHub username/password.

Additional information:

  • node -v prints: v20.4.0
  • Windows, macOS, or Linux?: Linux

I assume this is related to #6805.

@KSXGitHub
Copy link
Contributor

So solving one bug causes another bug. This is going to be a long day.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants