Docker build fails on arm64: golangci-lint binary hardcoded as linux-amd64 #15
Labels
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: sneak/pixa#15
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
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?
The Dockerfile downloads
golangci-lint-2.10.1-linux-amd64.tar.gzunconditionally, causingmake checkto fail during Docker build on arm64 hosts (the amd64 ELF binary cannot execute on aarch64).The downloaded binary produces a shell syntax error because the kernel cannot interpret the ELF format for the wrong architecture:
Fix: detect the container architecture at build time via
uname -mand download the matching binary with its pinned SHA-256 hash.