golangci-lint fails to be executed on macOS due to invalid code signature
Running make lint
fails on locally for me running on a MacBook Pro with M1 on macOS Sonoma.
❯ make lint
bash: line 1: 66039 Killed: 9 /Users/sami/gitlab/gitlab-development-kit/gitaly/_build/tools/golangci-lint run --out-format tab --config /Users/sami/gitlab/gitlab-development-kit/gitaly/.golangci.yml .
make: *** [lint-gitaly-linters] Error 137
The system console reveals the cause to be invalid code signature:
Exception Type: EXC_BAD_ACCESS (SIGKILL (Code Signature Invalid))
The binary can be ad-hoc signed to workaround this:
❯ codesign -s - _build/tools/golangci-lint
Edited by Sami Hiltunen