File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 17
17
18
18
ARG GO_VERSION=1.21.0
19
19
ARG XX_VERSION=1.2.1
20
- ARG GOLANGCI_LINT_VERSION=v1.53 .2
20
+ ARG GOLANGCI_LINT_VERSION=v1.54 .2
21
21
ARG ADDLICENSE_VERSION=v1.0.0
22
22
23
23
ARG BUILD_TAGS="e2e"
@@ -89,10 +89,13 @@ RUN --mount=type=bind,target=. \
89
89
90
90
FROM build-base AS lint
91
91
ARG BUILD_TAGS
92
+ ENV GOLANGCI_LINT_CACHE=/cache/golangci-lint
92
93
RUN --mount=type=bind,target=. \
93
94
--mount=type=cache,target=/root/.cache \
94
95
--mount=type=cache,target=/go/pkg/mod \
96
+ --mount=type=cache,target=/cache/golangci-lint \
95
97
--mount=from=golangci-lint,source=/usr/bin/golangci-lint,target=/usr/bin/golangci-lint \
98
+ golangci-lint cache status && \
96
99
golangci-lint run --build-tags "$BUILD_TAGS" ./...
97
100
98
101
FROM build-base AS test
You can’t perform that action at this time.
0 commit comments