mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-20 13:04:28 +02:00
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.
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user