You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
RUN go install github.com/golangci/golangci-lint/cmd/golangci-lint@${GOLANGCILINT_VERSION} \
33
+
&& mv /go/bin/golangci-lint /bin/golangci-lint
32
34
ARG GOFUMPT_VERSION
33
35
RUN go install mvdan.cc/gofumpt@${GOFUMPT_VERSION} \
34
36
&& mv /go/bin/gofumpt /bin/gofumpt
37
+
RUN go install golang.org/x/vuln/cmd/govulncheck@latest \
38
+
&& mv /go/bin/govulncheck /bin/govulncheck
35
39
ARG GOIMPORTS_VERSION
36
40
RUN go install golang.org/x/tools/cmd/goimports@${GOIMPORTS_VERSION} \
37
41
&& mv /go/bin/goimports /bin/goimports
@@ -56,14 +60,18 @@ RUN FILES="$(gofumpt -l .)" && test -z "${FILES}" || (echo -e "Source code is no
56
60
57
61
# runs goimports
58
62
FROM base AS lint-goimports
59
-
RUN FILES="$(goimports -l -local github.com/talos-systems/grpc-proxy .)" && test -z "${FILES}" || (echo -e "Source code is not formatted with 'goimports -w -local github.com/talos-systems/grpc-proxy .':\n${FILES}"; exit 1)
63
+
RUN FILES="$(goimports -l -local github.com/siderolabs/grpc-proxy .)" && test -z "${FILES}" || (echo -e "Source code is not formatted with 'goimports -w -local github.com/siderolabs/grpc-proxy .':\n${FILES}"; exit 1)
60
64
61
65
# runs golangci-lint
62
66
FROM base AS lint-golangci-lint
63
67
COPY .golangci.yml .
64
68
ENV GOGC 50
65
69
RUN --mount=type=cache,target=/root/.cache/go-build --mount=type=cache,target=/root/.cache/golangci-lint --mount=type=cache,target=/go/pkg golangci-lint run --config .golangci.yml
66
70
71
+
# runs govulncheck
72
+
FROM base AS lint-govulncheck
73
+
RUN --mount=type=cache,target=/root/.cache/go-build --mount=type=cache,target=/go/pkg govulncheck ./...
0 commit comments