You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
github remotes format partially incompatible with remotes package #275
If a dependency is hosted on GitHub, but its repository name doesn't match the package name, both pkgdepends and remotes allow explicitly specifying the package name. However, they are incompatible: pkgdepends expects a remote of the form packagename=github::username/repo, whereas remotes expects github::packagename=username/repo. This makes it impossible to both allow installation of one's package from GitHub with remotes and running a GitHub actions workflow that uses r-lib/actions/setup-r-dependencies (which uses pak which uses pkgdepends)
Indeed, thank you, now it works. Still, in light of potential addiitonal remotes for pkgdepends (#13, #15, #16) I think the formats should be compatible.
As pkgdepends will get more features in the future, and remotes will not, it is unlikely that the formats will stay fully compatible. That said, pkgdepends should be able to parse the same refs that remotes parses, so I'll fix this here if possible.
(whereas it should be "3.6.0" at the moment of writing this post; also: it's very unlikely to make a release out of development version)
I think I managed to go through the all stack and the problem is that "release" slot of remote_ref object is being ignored when parsing GH query to download:
Activity
gaborcsardi commentedon Mar 11, 2022
The
github::is optional, sopackagename=username/reposhould work for both.ilia-kats commentedon Mar 11, 2022
Indeed, thank you, now it works. Still, in light of potential addiitonal remotes for pkgdepends (#13, #15, #16) I think the formats should be compatible.
gaborcsardi commentedon Apr 8, 2022
As pkgdepends will get more features in the future, and remotes will not, it is unlikely that the formats will stay fully compatible. That said, pkgdepends should be able to parse the same refs that remotes parses, so I'll fix this here if possible.
pawelru commentedon Mar 9, 2023
Just to add:
<org>/<repo>@*remotessyntax is currently not supported even though documentation claims to do so:pkgdepends/tools/doc/pkg-refs.Rmd
Lines 213 to 217 in 63479a7
This is a dummy example:
(whereas it should be
"3.6.0"at the moment of writing this post; also: it's very unlikely to make a release out of development version)I think I managed to go through the all stack and the problem is that
"release"slot ofremote_refobject is being ignored when parsing GH query to download:pkgdepends/R/type-github.R
Lines 244 to 250 in 63479a7