by anon7000 · 3mo ago · 0 comments
In plain English, maybe it’d be more like “Package specifiers for git repositories should no longer include the HTTPS/SSH protocol. Instead, reference the repository name, and pnpm will resolve it through HTTPS. If SSH is still needed, add an override in your global git settings”
> For repositories on GitHub, GitLab, and Bitbucket, a specifier now names a repository rather than choosing a transport. github:owner/repo, owner/repo, git+https://…, and git+ssh://git@… all resolve through the host's canonical HTTPS URL, and the lockfile never records an SSH URL for those hosts. To reach a private hosted repository over SSH, configure the machine with git's own URL rewriting:
git config --global url."git@github.com:".insteadOf https://github.com/
> pnpm shells out to git, so the rewrite applies to all of its git operations. Unknown hosts keep their exact URL, SSH included, and a URL with embedded credentials is kept verbatim and never resolves to a host archive. Details in How git dependencies are resolved.