fix(template): use linux/arm64/v8 for Go distroless base image#900
Merged
Conversation
The gcr.io/distroless/base image index labels its arm64 manifest with variant "v8". rules_oci builds its platform-match string from os/arch/variant, so the manifest's platform is "linux/arm64/v8". The Go oci.pull requested bare "linux/arm64", which never matches and fails on Apple Silicon with: No matching manifest found in image gcr.io/distroless/base for platform linux/arm64 CI passed because it runs on linux/amd64, which matched fine — only the arm64 fetch path (exercised on Apple Silicon) was broken. The Python base image in the same file already used the variant-qualified form; this brings the Go entry in line. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
✨ Aspect Workflows Tasks📅 Tue Jun 23 20:13:03 UTC 2026 ✅ 68 successful tasks
⏱ Last updated Tue Jun 23 20:31:19 UTC 2026 · 📊 GitHub API quota 853/15,000 (6% used, resets in 45m, throttle 2×) |
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.
The Go template's OCI base image fails to build locally on Apple Silicon Macs with:
Root cause: The
gcr.io/distroless/baseimage index labels its arm64 manifest with"variant": "v8". rules_oci builds its platform-match string fromos/arch/variant, so the manifest's platform islinux/arm64/v8. The Gooci.pullrequested barelinux/arm64, which never matches →_find_platform_manifestreturnsNone→fail().CI passed because it runs on
linux/amd64, which matched fine — only the arm64 fetch path (exercised on Apple Silicon) was broken. The Python base image in the sameMODULE.bazelalready used the variant-qualified form (linux/arm64/v8+..._linux_arm64_v8); this brings the Go entry in line.Changes are visible to end-users: yes
Searched for relevant documentation and updated as needed: yes
Breaking change (forces users to change their own code or config): no
Suggested release notes appear below: yes
Fixed Go template OCI image builds failing on Apple Silicon Macs (
No matching manifest found ... for platform linux/arm64) by requesting the variant-qualifiedlinux/arm64/v8distroless base manifest.Test plan
aspect build //...— previously failed fetchingdistroless_base_linux_arm64; now builds successfully.