-
Notifications
You must be signed in to change notification settings - Fork 65
Dependency resolution error for "deps::."
when forcing platform
#522
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
Comments
Upstream digest issue: eddelbuettel/digest#189 . @gaborcsardi: Situations like this may occur, what's a good way to deal with them? Currently, running |
There is no good way, AFAICT. |
Fwiw if you use 'upgrade=FALSE', which is the default in setup-r-dependencies, then pak will install the older binary package, unless the newer version is needed by another dependency. |
What would an equivalent pkgdepends (?) reprex look like? |
Actually, if the problem is a broken package version, then fixing that package to a version that is known to be OK, like you did, is a pretty good solution, I think. |
Re the original error, I get
because the For other package sources, the binary is correctly selected:
|
"deps::."
when forcing platform
Thanks, good catch. I thought this was about digest when it was about the local package. |
Actually, the correct test is with
|
Reprex: library(pkgdepends)
dir.create(pkg <- tempfile())
dir.create(lib <- tempfile())
setwd(pkg)
Sys.setenv(PKG_PLATFORMS = current_r_platform())
writeLines("Package: foo\nVersion: 1.0.0\nSuggests: digest", "DESCRIPTION")
p <- new_pkg_installation_proposal("deps::.", config = list(library = lib))
p$solve()
p$show_solution()
#> Error: ! Could not solve package dependencies:
#> * deps::.: Platform mismatch Created on 2023-07-07 with reprex v2.0.2 |
Closed by r-lib/pkgdepends@f7179f7 |
Currently:
Trying to
Sys.setenv(PKG_PLATFORMS = "aarch64-apple-darwin20")
according to #496 (comment) leads to:Created on 2023-07-07 with reprex v2.0.2
Session info
The text was updated successfully, but these errors were encountered: