Skip to content

Commit 186744e

Browse files
milasndeloof
authored andcommitted
ci: bump golangci-lint to v1.54.2
Also improve incremental lint caching. Signed-off-by: Milas Bowman <[email protected]>
1 parent bc9d696 commit 186744e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
ARG GO_VERSION=1.21.0
1919
ARG XX_VERSION=1.2.1
20-
ARG GOLANGCI_LINT_VERSION=v1.53.2
20+
ARG GOLANGCI_LINT_VERSION=v1.54.2
2121
ARG ADDLICENSE_VERSION=v1.0.0
2222

2323
ARG BUILD_TAGS="e2e"
@@ -89,10 +89,13 @@ RUN --mount=type=bind,target=. \
8989

9090
FROM build-base AS lint
9191
ARG BUILD_TAGS
92+
ENV GOLANGCI_LINT_CACHE=/cache/golangci-lint
9293
RUN --mount=type=bind,target=. \
9394
--mount=type=cache,target=/root/.cache \
9495
--mount=type=cache,target=/go/pkg/mod \
96+
--mount=type=cache,target=/cache/golangci-lint \
9597
--mount=from=golangci-lint,source=/usr/bin/golangci-lint,target=/usr/bin/golangci-lint \
98+
golangci-lint cache status && \
9699
golangci-lint run --build-tags "$BUILD_TAGS" ./...
97100

98101
FROM build-base AS test

0 commit comments

Comments
 (0)