-
Notifications
You must be signed in to change notification settings - Fork 56
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
"path
must exist" with pak::lockfile_install()
on archived/old packages
#425
Comments
path
must exist" when pak::lockfile_install(update = TRUE)
path
must exist" with pak::lockfile_install()
on archived/old packages
From the manual:
Unfortunately you cannot reliably use pak's lock files like this currently. |
oh, I missed that part.🤦♂️
|
OTOH, this specific case should work fine, and it is indeed a bug in pak/pkgdepends: the alternative URL is wrong, instead of
it should be
|
Waiting for r-lib/pak#425
Yes, I think we could document the cases when lock files are reliable. E.g. if you only use CRAN source packages, then they should work fine. An MRAN snapshot should be also fine, as that never changes. It is possible that RSPM snapshots also work, and packages from Bioc could be fines as well (possibly even their binaries), but I would need to double check that. |
Thanks, I think the safest would be to set MRAN as default repository in the Dockerfile and document it in the website for my current use case (when most of the development will be over). |
This is now fixed in dev pkgcache and will be fixed in the the next dev pak builds. I'll comment here when they are available. |
This should be available now, except on arm64 platforms. |
Thanks, for now I simply manually updated the archive URLs. |
Waiting for r-lib/pak#425
# pkgcache 2.0.3 * The `built` and `sysreqs` columns of the metadata case are always character vectors now, and not logicals, as it used to be in some edges cases in the past. * The `deps` column of the metadata cache is not a tibble any more, but a data frame with a `tbl` class, as it should be. * `cran_archive_*()` functions now only download the metadata if it is newer than what you have currently. * `cran_archive_cleanup()` now does not ignore the `force` argument. * The `sources` column in the metadata cache now has the correct URL for packages in the CRAN archive (r-lib/pak#425). # pkgcache 2.0.2 * pkgcache error messages are better now. * pkgcache now does not compress the metadata cache files, which makes loading the metadata cache faster.
Hi,
I have been facing an issue when restoring a lock file with
pak
when the version is no longer the latest available on CRAN.For example, a lock file generated with
pak
forcurl
4.3.2A Dockerfile (based on Debian 11) build using
docker buildx build --platform "linux/amd64" --file Dockerfile .
The produced log
Right now, the latest version of
curl
is 4.3.3 on CRAN.If the lock file is pointing to the CRAN version, it is restored properly.
curl
4.3.3 lock fileDocker build log from the same Dockerfile as above
The original issue was encountered with https://github.com/mcanouil/eggla/tree/main/inst/setup using the following GitHub Action workflow https://github.com/mcanouil/eggla/blob/main/.github/workflows/build-docker.yml.
The text was updated successfully, but these errors were encountered: