mirror of
https://github.com/lightninglabs/pool.git
synced 2026-08-13 12:33:04 +02:00
It looks like one of the projects pulled in by the linter also uses the "tools" build tag. When we turn on that build tag, we get build errors in github.com/ryancurrah/gomodguard. So we just remove the build tag during compilation as it's not actually needed (the build tag is just there to not pull in the dependencies during the normal build).
17 lines
413 B
Docker
17 lines
413 B
Docker
FROM golang:1.19.4
|
|
|
|
RUN apt-get update && apt-get install -y git
|
|
ENV GOCACHE=/tmp/build/.cache
|
|
ENV GOMODCACHE=/tmp/build/.modcache
|
|
ENV GOFLAGS="-buildvcs=false"
|
|
|
|
COPY . /tmp/tools
|
|
|
|
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 \
|
|
&& chmod -R 777 /tmp/build/
|
|
|
|
WORKDIR /build
|