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
Keep golangci-lint in the image to avoid breaking backwards
compatibility with existing users. Add golangci-lint-v2 to create an
upgrade path.
Signed-off-by: Marcelo E. Magallon <marcelo.magallon@grafana.com>
Copy file name to clipboardExpand all lines: Dockerfile.build.tmpl
+10-1Lines changed: 10 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -131,6 +131,13 @@ FROM go AS golangci_lint
131
131
132
132
RUN env GOPATH=/build GOOS=${TARGET_GOOS} GOARCH=${TARGET_GOARCH} go install github.com/golangci/golangci-lint/cmd/golangci-lint@{{ .data.golangci_lint }}
133
133
134
+
FROM go AS golangci_lint_v2
135
+
ARG TARGET_GOOS
136
+
ARG TARGET_GOARCH
137
+
138
+
RUN env GOPATH=/build GOOS=${TARGET_GOOS} GOARCH=${TARGET_GOARCH} go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@{{ .data.golangci_lint_v2 }} && \
0 commit comments