fix: Docker build failures on arm64 (closes #15) #16
Odkázat v novém úkolu
Zablokovat Uživatele
Smazat větev „fix/docker-multiarch-lint“
Smazání větve je trvalé. Přestože zrušená větev může existovat i po krátkou dobu, než bude skutečně odstraněna, NELZE ji většinou vrátit. Pokračovat?
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.