Closed jkeirstead closed 6 months ago
Can you try using r-lib/pak instead of remotes? It will require you to use a https
git remote though.
If possible, I want to avoid using https git remotes as it would require changes in the rest of my build environment. Is there no fix for using SSH remotes?
IDK, it does not fail for me for private repos:
❯ remotes::install_git("git@github.com:gaborcsardi/playground2.git")
Downloading git repo git@github.com:gaborcsardi/playground2.git
'/opt/homebrew/bin/git' clone --depth 1 --no-hardlinks git@github.com:gaborcsardi/playground2.git /var/folders/ph/fpcmzfd16rgbbk8mxvy9m2_h0000gn/T//RtmpWQCCcU/file1018522ed21ec
Cloning into '/var/folders/ph/fpcmzfd16rgbbk8mxvy9m2_h0000gn/T//RtmpWQCCcU/file1018522ed21ec'...
remote: Enumerating objects: 7, done.
remote: Counting objects: 100% (7/7), done.
remote: Compressing objects: 100% (5/5), done.
remote: Total 7 (delta 0), reused 6 (delta 0), pack-reused 0
Receiving objects: 100% (7/7), done.
remotes::install_git
works for me too. It seems to be something with converting the dependency to the right install_
call (see the traceback above)
An update on this: converting to https
git remotes solves the problem without having to switch to pak
.
I'm developing a package using
renv
and it depends on other packages in private Github repositories. These are accessed via SSH and installed withrenv::install('git@github.com:myorg/mypkg.git')
. While this works fine for development purposes, the package will not install (e.g.devtools::install()
) and fails with the following message:Here's a traceback:
the relevant parts of the session info:
and the relevant bits of the DESCRIPTION file for the package that's being developed:
Any idea how to resolve this?