Skip to content

setup-r-deps: take macOS binaries from Posit Package Manager - #64

Merged
eliotmcintire merged 1 commit into
mainfrom
fix/macos-use-p3m-binaries
Sep 21, 2026
Merged

eliotmcintire merged 1 commit into
mainfrom
fix/macos-use-p3m-binaries

Conversation

@eliotmcintire

Copy link
Copy Markdown
Contributor

Every macOS leg is failing in dependency installation with Cannot extract '.../knitr_1.52.tgz', unknown archive type. CRAN has started serving newly built macOS binaries zstd-compressed: knitr_1.52.tgz and terra_1.9-50.tgz start with 28 b5 2f fd, while older builds such as jsonlite_2.0.0.tgz are gzip. pak works out the archive type from those bytes and knows gzip, bzip2 and xz only (detect_package_archive_type() in pkgdepends install-tar.R). About 1 in 40 CRAN macOS binaries is zstd today, and the share will grow as packages are rebuilt. Upstream: r-lib/pak#915.

setup-r applies use-public-rspm: true on Linux and Windows, but on macOS only for Posit's own GitHub orgs, so our macOS legs used the CRAN mirror. setup-r-deps/action.yaml now passes always on macOS. Posit Package Manager serves the same versions as gzip, and has 22,390 macOS arm64 binaries for R 4.6. use-public-rspm: false is still honoured.

The self-test fixture imports terra, one of the affected files, so its macOS leg is the test. This should be revisited when pak reads zstd.

🤖 Generated with Claude Code

https://claude.ai/code/session_013B4sgRg9EwyHaAQdDzUaQW

CRAN began serving newly built macOS binaries zstd-compressed (knitr_1.52.tgz and
terra_1.9-50.tgz start 28 b5 2f fd; older builds are gzip). pak detects the
archive type from those bytes and knows gzip, bzip2 and xz only, so dependency
installation on every macOS leg stopped with 'Cannot extract ..., unknown archive
type' (r-lib/pak#915).

setup-r applies use-public-rspm: true to Linux and Windows, but on macOS only for
Posit's own GitHub orgs, so our macOS legs used the CRAN mirror. Passing 'always'
on macOS puts Package Manager first, and it serves the same versions as gzip.
use-public-rspm: false is still honoured.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_013B4sgRg9EwyHaAQdDzUaQW
@eliotmcintire
eliotmcintire merged commit 11f2910 into main Sep 21, 2026
13 checks passed
@eliotmcintire
eliotmcintire deleted the fix/macos-use-p3m-binaries branch September 21, 2026 03:16
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

Successfully merging this pull request may close these issues.

1 participant