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
It's important to have reproducible CI: don't start to fail all builds at the same time.
7
+
With golangci-lint this can happen if you use option `linters.default: all` and a new linter is added
8
+
or even without `linters.default: all` when one upstream linter is upgraded.
9
+
10
+
> [!IMPORTANT]
11
+
> It's highly recommended installing a specific version of golangci-lint available on the [releases page](https://github.com/golangci/golangci-lint/releases).
12
+
13
+
## GitHub Actions
14
+
15
+
We recommend using [our GitHub Action](https://github.com/golangci/golangci-lint-action) for running golangci-lint in CI for GitHub projects.
16
+
17
+
It's [fast and uses smart caching](https://github.com/golangci/golangci-lint-action#performance) inside,
18
+
and it can be much faster than the simple binary installation.
19
+
20
+
Also, the action creates GitHub annotations for found issues (you don't need to dig into build log to see found by golangci-lint issues).
GitLab provides a [guide for integrating golangci-lint into the Code Quality widget](https://docs.gitlab.com/ci/testing/code_quality/#golangci-lint).
30
+
A simple quickstart is their [CI component](https://gitlab.com/explore/catalog/components/code-quality-oss/codequality-os-scanners-integration), which can be used like this:
Copy file name to clipboardExpand all lines: docs/content/docs/welcome/install/local.md
+17-40Lines changed: 17 additions & 40 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,6 @@
1
1
---
2
-
title: "Install"
3
-
weight: 1
4
-
aliases:
5
-
- /welcome/install/
2
+
title: "Local Installation"
3
+
weight: 2
6
4
---
7
5
8
6
## CI installation
@@ -42,20 +40,6 @@ include:
42
40
43
41
Note that you [can only reference components in the same GitLab instance as your project](https://docs.gitlab.com/ci/components/#use-a-component)
44
42
45
-
### Buildkite
46
-
47
-
Buildkite offers a [plugin](https://buildkite.com/resources/plugins/buildkite-plugins/golangci-lint-buildkite-plugin/) for running golangci-lint in Buildkite pipelines.
48
-
49
-
It utilizes the official [Docker image](https://hub.docker.com/r/golangci/golangci-lint) by default, but can be set to use a binary if available on the agent.
50
-
51
-
The plugin will annotate builds with results, providing an easily readable summary of fixes.
On Windows, you can run the above commands with Git Bash, which comes with [Git for Windows](https://git-scm.com/download/win).
61
+
76
62
It is advised that you periodically update the version of golangci-lint as the project is under active development and is constantly being improved.
77
63
For any problems with golangci-lint, check out recent [GitHub issues](https://github.com/golangci/golangci-lint/issues) and update if needed.
0 commit comments