`pkgcache:::is_ppm_linux_repo_url()` does not recognize manylinux_2_28 as a valid binary distro
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Newbie friendliness
- 82/100
Research direction
Start in R/metadata-cache.R at the re_ppm_linux regular expression used by pkgcache:::is_ppm_linux_repo_url(). Verify the examples in the issue, including manylinux_2_28 and resolute URLs, and update the matching behavior so the manylinux_2_28 URL is recognized as valid without breaking existing distro and version matches.
Written by the indexing model from the issue text.
Description
This issue in pak is likely related to pkgcache:::is_ppm_linux_repo_url(), which does not recognize p3m manylinux_2_28 as a valid binary distro. This may cause pak to compile packages from source instead of downloading them.
# For recent Ubuntu 26.04 it works
pkgcache:::is_ppm_linux_repo_url(
"https://packagemanager.posit.co/cran/__linux__/resolute/latest"
)
#> [1] TRUE
# ... for manylinux_2_28 not
pkgcache:::is_ppm_linux_repo_url(
"https://packagemanager.posit.co/cran/__linux__/manylinux_2_28/latest"
)
#> [1] FALSE
Changing the regex re_ppm_linux would work:
grepl(
"^(?<base>.*/)(?<repo>[^/]+)/__linux__/(?<distro>[a-zA-Z0-9_]+)/(?<version>latest|[-0-9]+)$",
"https://packagemanager.posit.co/cran/__linux__/manylinux_2_28/latest",
perl = TRUE
)
#> [1] TRUE
- Dominant language
- R
- Stars
- 30
- Forks
- 19
- Avg merge
- 4d 19h
- Merged PRs (30d)
- 1
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from r-lib/pkgcache
-
Difficulty 4/5 3-5 days Newbie friendliness 32/100
-
upkeep
Difficulty 4/5 3-5 days Newbie friendliness 25/100
-
feature
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
feature
Difficulty 2/5 1-3 hours Newbie friendliness 55/100
-
feature
Difficulty 3/5 1-2 days Newbie friendliness 20/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
r-lib/pkgdepends#485 · 3 comments ·
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100
-
beginners blocker
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enviPathR OpenBuild Error Build OK Build Warning policies-accepted pre-review precheck-passed
Difficulty 1/5 Under an hour Newbie friendliness 84/100
Bioconductor/BiocContributions#207 · 6 comments ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
datacarpentry/semester-biology#1255 ·