-
Notifications
You must be signed in to change notification settings - Fork 62
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
pak fails to install versioned packages from PPM #724
Comments
Also note: |
I also face this issue, leading to my CI pipelines suddenly failing. After bit of digging could trace it back to {pkgdepends} dependcy solver process - e.g. trying to resolve [email protected] from P3M fails for me
Seems pkgdepends cannot decide between the two options, although it feels this should be straightforward |
Can you show a successful build and a failing one? |
@gaborcsardi CI-wise its quite simple.. the failing pipelines (actually its a test step before building anything) fail because of pak throwing "dependency conflicts" during renv::restore() e.g.
This did not happen a week ago, and checking on P3M textshaping got updated on Dec 6th I think this traces back to what pkgdepends has in the "platform" field after resolution from P3M. E.g. above example with glue # resolve using P3M
options(repos = "https://packagemanager.posit.co/cran/__linux__/jammy/latest")
prop_p3m <- new_pkg_installation_proposal(pkg, config = list(
library = lib,
dependencies = dependencies
))
prop_p3m$resolve()
solution_p3m <- prop_p3m$get_resolution()
solution_p3m[, c("ref", "type", "direct", "version", "needscompilation", "platform")]
Same table if std CRAN mirror is used: # Resolve using "normal" CRAN mirror
options(repos = "https://stat.ethz.ch/CRAN/")
prop_cran <- new_pkg_installation_proposal(pkg, config = list(
library = lib,
dependencies = dependencies
))
prop_cran$resolve()
solution_cran <- prop_cran$get_resolution()
solution_cran[, c("ref", "type", "direct", "version", "needscompilation", "platform")]
This subsequently leads to the [email protected] being thrown out by pkgdepends here in that block probably: I am now confused if this is P3Ms, or pkgdepends issue |
Update: The
so pkgdepends parses the |
@gaborcsardi Sorry, can you help here? I originally opened the corresponding But since kevin could should that this can be reproduced with pak only (so without renv) this is probably a pak issue? Kevin showed a minimal reproducible example int he first post. I also created a github repo with a dockerfile https://github.com/mihem/docker_renv_pak_debug to make it reproducible across machines. Here's the error https://github.com/mihem/docker_renv_pak_debug/actions/runs/12220756689/job/34088962358. Thanks! |
@gaborcsardi Sorry, any news on this? Any further information I can provide? |
For example:
I see:
Note: I don't see any issues if I try to install packages from the default CRAN mirror. Does
pak
do some special dependency resolution when using PPM binary repositories, or anything like that?This is with pak 0.8.0.
See also: rstudio/renv#2051 (comment)
The text was updated successfully, but these errors were encountered: