From ba5f3c0485f9aefec6e2e69258914b2baa5169d1 Mon Sep 17 00:00:00 2001 From: Boris Nagaev Date: Sun, 17 Aug 2025 19:35:27 -0300 Subject: [PATCH] tools: fix building golangci-lint on Arm64 If CGO is enabled, Go tries to use the gold linker (-fuse-ld=gold), which is not installed. CGO was disabled, because it is not needed for golangci-lint. --- tools/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/Dockerfile b/tools/Dockerfile index a9b39edb2..9906ba84c 100644 --- a/tools/Dockerfile +++ b/tools/Dockerfile @@ -10,8 +10,8 @@ RUN cd /tmp \ && mkdir -p /tmp/build/.cache \ && mkdir -p /tmp/build/.modcache \ && cd /tmp/tools \ - && go install -trimpath github.com/golangci/golangci-lint/cmd/golangci-lint \ - && golangci-lint custom \ + && CGO_ENABLED=0 go install -trimpath github.com/golangci/golangci-lint/cmd/golangci-lint \ + && CGO_ENABLED=0 golangci-lint custom \ && mv ./custom-gcl /usr/local/bin/custom-gcl \ && chmod -R 777 /tmp/build/ \ && git config --global --add safe.directory /build