-
Notifications
You must be signed in to change notification settings - Fork 64
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
pkg_system_requirements only reports direct sys reqs and ignores imports #315
Comments
This seems to also cause > pak::pkg_install("devtools")
→ Will install 38 packages.
→ Will update 12 packages.
.
.
.
ℹ Building curl 4.3.2
✖ Failed to build curl 4.3.2
Error: Failed to build source package 'curl' |
@assignUser, as far as I can understand, the two functions have intrinsically a different behavior in the way they use the RSPM API to retrieve system requirements (via
Lines 64 to 75 in 7e4fdc7
The API actually returns an error (https://packagemanager.rstudio.com/__api__/repos/1/sysreqs?all=false&pkgname=testpackage&distribution=ubuntu&release=18.04), which is however not really handled by pkg_system_requirements() .
Lines 79 to 111 in 7e4fdc7
|
@riccardoporreca thank you for your detailed answer. So my issue is kind of an edge case with a package that is not on CRAN/RSPM. I still think that the different behavior should be noted in the docs and |
…ib#315) * Relying on the API "error" key in the retrieved content. * Tested using the additional documentation examples => Could not locate package 'iDontExist'
* For consistency with what done for `pkg_system_requirements()` (r-lib#315) * Tested via ```r root <- tempfile("devPkg") dir.create(root) file.create(file.path(root, "DESCRIPTION")) local_system_requirements("ubuntu", "20.04", root = root) # => Could not parse DESCRIPTION: EOF ```
* Relying on the API "error" key in the retrieved content. * Tested using the additional documentation examples => Could not locate package 'iDontExist'
* For consistency with what done for `pkg_system_requirements()` (#315) * Tested via ```r root <- tempfile("devPkg") dir.create(root) file.create(file.path(root, "DESCRIPTION")) local_system_requirements("ubuntu", "20.04", root = root) # => Could not parse DESCRIPTION: EOF ```
@assignUser, see commits above, merged by PR #328 |
@riccardoporreca Great, thank you! |
As I noticed in r-lib/actions#370
local_system_requirments
andpkg_system_requirements
seem to behave unxepectedly different.local
recursively reports all system requirements of the package and its dependencies, whilepkg
only reports requirements listed directly in theDESCRIPTION
of the package. I assume this is a bug?Created on 2021-09-06 by the reprex package (v2.0.1)
The text was updated successfully, but these errors were encountered: