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

feat: try SSH keys before HTTPS for github packages without protocol #852

Merged
merged 2 commits into from
Mar 12, 2021

Conversation

midgleyc
Copy link
Contributor

Fixes #850.

If no protocol is specified for a github URL, try the SSH url followed by the HTTPS url. If a protocol is specified, only try that one: assume that people have put in the url correctly.

We try SSH first because HTTPS might prompt for credentials for private repos, while SSH fails silently.

The graphical glitch where the password prompt pops up and disappears if the progress bar updates persists: I'm okay with that because I can't see how you could manage to install a package without either an SSH key or having signed in to GitHub, in which case you're hopefully expecting it.

@raineorshine
Copy link
Owner

Thanks so much!

@raineorshine raineorshine merged commit 6eee8d7 into raineorshine:main Mar 12, 2021
@raineorshine
Copy link
Owner

Published to v11.3.0

@midgleyc midgleyc deleted the private-ssh-github-urls branch March 12, 2021 22:24
This was referenced Mar 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Private repo with a semver tag hangs
2 participants