Skip to content

pkgcache:::is_ppm_linux_repo_url() does not recognize manylinux_2_28 as a valid binary distro #138

@AdaemmerP

Description

@AdaemmerP

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions