Skip to content

Commit f0c94bf

Browse files
committed
lint: run in go-modules mode
Prevent the linter from recursing to other modules (cmd/docker-trust), which don't have their dependencies vendored. Signed-off-by: Sebastiaan van Stijn <[email protected]>
1 parent 0e43cb3 commit f0c94bf

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

dockerfiles/Dockerfile.lint

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ ENV CGO_ENABLED=0
1818
ENV GOGC=75
1919
WORKDIR /go/src/github.com/docker/cli
2020
COPY --link --from=golangci-lint /usr/bin/golangci-lint /usr/bin/golangci-lint
21-
RUN --mount=type=bind,target=. \
21+
RUN --mount=type=bind,target=.,rw \
2222
--mount=type=cache,target=/root/.cache \
23+
rm -f go.mod go.sum && \
24+
ln -s vendor.mod go.mod && \
25+
ln -s vendor.sum go.sum && \
2326
golangci-lint run

0 commit comments

Comments
 (0)