Skip to content
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

Inferring sysreqs from cloud.r-project.org stopped working (?) #381

Closed
pat-s opened this issue Sep 10, 2024 · 4 comments
Closed

Inferring sysreqs from cloud.r-project.org stopped working (?) #381

pat-s opened this issue Sep 10, 2024 · 4 comments

Comments

@pat-s
Copy link
Contributor

pat-s commented Sep 10, 2024

The following used to work until a few days ago

# using 'naked' noble on purpose
docker run --rm -it --platform linux/amd64 ubuntu:noble bash

export DEBIAN_FRONTEND=noninteractive && apt update && apt install -y r-base-core
R -q -e 'install.packages("pak", repos = sprintf("https://r-lib.github.io/p/pak/stable/%s/%s/%s", .Platform$pkgType, R.Version()$os, R.Version()$arch))'

R -q -e 'pkgs <- pak::meta_list(); pkgs[pkgs$package == "units", c("package", "sources", "sysreqs")]'
R -q -e 'pak::pak("units")'

Now I get

> pkgs <- pak::meta_list(); pkgs[pkgs$package == "units", c("package", "sources", "sysreqs")]
! Optional package `pillar` is not available for pak.
  Use `pak::pak_install_extra()` to install optional packages.
  Use `options(pak.no_extra_messages = TRUE)` to suppress this message.
v Updated metadata database: 1.69 MB in 8 files.
v Updating metadata database ... done
      package
20324   units
                                                                                                                                   sources
20324 https://cloud.r-project.org/src/contrib/units_0.8-5.tar.gz, https://cloud.r-project.org/src/contrib/Archive/units/units_0.8-5.tar.gz
      sysreqs
20324    <NA>

I am not sure what changed but I had to give up after several hours of research. Any idea what might have changed?

I also have some (private) CI image builds which successfully resolved the sysreqs a few days ago and now won't (without any source change).

@gaborcsardi
Copy link
Member

Thanks! Should be fixed now, you'll need to a delete the metadata with pak::meta_clean() if there is any.

IDK what happened on GH Pages, but I had to do a dummy redeploy, otherwise the files where all 404.

@pat-s
Copy link
Contributor Author

pat-s commented Sep 11, 2024

Ah, good to hear, I was already getting crazy not understanding what and why this was happening.

I wasn't able to find any gh-pages/github.io reference in the {pkgdepends} code. Where is it used?

PS: Working again.

@pat-s
Copy link
Contributor Author

pat-s commented Sep 11, 2024

Ah, deep down in the pkgcache jungle, hard to find ;)

@pat-s pat-s closed this as completed Sep 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants