Skip to content

Commit 0b4f14f

Browse files
go/lint: read GOLANGCI_LINT_VERSION to override version (#322)
* go/lint: read GOLANGCI_LINT_VERSION to override version Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> --------- Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent bb491d7 commit 0b4f14f

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

go/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
- `EXPERIMENTAL`: List of additional checks to perform. (Example: `gitleaks,...`)
66
- Current experiments: `gitleaks`, `govulncheck`, `shuffle`
77

8+
### Versions
9+
10+
- `GOLANGCI_LINT_VERSION`: Overrides the `golangci-lint` version used. Defaults to `latest`.
11+
812
### Go Linters
913

1014
- `DISABLE_GOVULNCHECK`: Set to skip running [govulncheck](https://pkg.go.dev/golang.org/x/vuln/cmd/govulncheck)

go/lint-project.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
set -e
33

44
gitleaks_version=8.17.0
5-
golangci_version=latest
5+
golangci_version="${GOLANGCI_LINT_VERSION:-latest}"
66
sqlvet_version=v1.1.5
77

88
# Set these to any non-blank value to disable the linter

0 commit comments

Comments
 (0)