Repository navigation
setup-r-deps: take macOS binaries from Posit Package Manager - #64
Merged
Merged
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.tgzandterra_1.9-50.tgzstart with28 b5 2f fd, while older builds such asjsonlite_2.0.0.tgzare gzip. pak works out the archive type from those bytes and knows gzip, bzip2 and xz only (detect_package_archive_type()in pkgdependsinstall-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-rappliesuse-public-rspm: trueon 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.yamlnow passesalwayson macOS. Posit Package Manager serves the same versions as gzip, and has 22,390 macOS arm64 binaries for R 4.6.use-public-rspm: falseis 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