fix: Docker build failures on arm64 (closes #15) #16
No reviewers
Labels
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: sneak/pixa#16
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "fix/docker-multiarch-lint"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
The Dockerfile hardcodes
golangci-lint-2.10.1-linux-amd64.tar.gz, causing Docker builds to fail on arm64 hosts. The amd64 binary cannot execute on aarch64, producing:Fix
Detect container architecture at build time via
uname -mand download the matching golangci-lint binary. Both amd64 and arm64 SHA-256 hashes are pinned per repo policy.Verification
make checkoutput (local, passes)docker build .(succeeds)Closes #15
Pipeline sweep: PR is mergeable but has no pipeline label. Classifying as
needs-checks— will verifymake checkpasses.✅
make checkpassedFormatting: clean
Linter: 0 issues
Tests: all passing
Label updated:
needs-checks→needs-reviewCode Review (self-review — cannot formally approve own PR):
LGTM. The arm64 detection logic is correct (
uname -mreturnsaarch64in Linux containers,arm64on macOS — both handled). SHA-256 checksum for the arm64 binary verified independently against the upstream release.make checkpasses with zero failures. Clean, minimal change.Ready for maintainer approval.