Skip to content

fix(downloader): select protoc builds for macOS and Linux arm64 (osx, aarch_64) - #172

Merged
roxblnfk merged 1 commit into
1.xfrom
fix/protoc-osx-aarch64
Oct 28, 2026
Merged

roxblnfk merged 1 commit into
1.xfrom
fix/protoc-osx-aarch64

Conversation

@roxblnfk

Copy link
Copy Markdown
Member

What was changed

  • osx is read as macOS and aarch_64 / aarch-64 as arm64, so protoc installs on macOS (Intel and Apple Silicon) and on Linux arm64.
  • osx-universal_binary counts as a universal macOS build, like darwin-universal.
  • On macOS a universal build now ranks right after the build for the host architecture instead of equal to it, and still ahead of an x86-64 build under Rosetta. Before, the order of the release assets decided between the two, and macOS x64 got protoc's universal binary.

Why?

rr get-grpc-tools (roadrunner-php/cli#76) could not install protoc on macOS and Linux arm64.

Checklist

…`, `aarch_64`)

fix(downloader): prefer the host-arch macOS build over a universal one

protoc names macOS `osx` and arm64 `aarch_64`, so no protoc asset matched on macOS and Linux arm64.

A universal build ranked equal to the host-arch build, so the API order decided between them and macOS x64 got protoc's universal binary; it now ranks right after the host-arch build and still ahead of Rosetta.

Closes #171

Assisted-By: Claude Opus 5.5 <noreply@anthropic.com>
@roxblnfk roxblnfk added the bug Something isn't working label Oct 28, 2026
@github-actions github-actions Bot added the tests label Oct 28, 2026
@codecov

codecov Bot commented Oct 28, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

Files with missing lines Coverage Δ
src/Module/Common/Architecture.php 70.00% <100.00%> (-30.00%) ⬇️
src/Module/Common/OperatingSystem.php 94.73% <100.00%> (ø)
...e/Downloader/Internal/AssetSelection/AssetName.php 100.00% <ø> (ø)
.../Internal/AssetSelection/Rule/ArchitectureRule.php 100.00% <100.00%> (ø)

... and 9 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@roxblnfk
roxblnfk merged commit 268d181 into 1.x Oct 28, 2026
25 checks passed
@roxblnfk
roxblnfk deleted the fix/protoc-osx-aarch64 branch October 28, 2026 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

protoc assets for macOS and Linux arm64 are not selected (osx, aarch_64)

1 participant