Skip to content
This repository was archived by the owner on Jun 2, 2023. It is now read-only.

Commit e6a9d94

Browse files
committed
support golangci-lint v1.20.0
1 parent 58f95f7 commit e6a9d94

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

.golangci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,4 @@ linters:
3838
# golangci.com configuration
3939
# https://github.com/golangci/golangci/wiki/Configuration
4040
service:
41-
golangci-lint-version: 1.19.x # use fixed version to not introduce new linters unexpectedly
41+
golangci-lint-version: 1.20.x # use fixed version to not introduce new linters unexpectedly

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
repos:
22
- repo: https://github.com/golangci/golangci-lint
3-
rev: v1.19.1
3+
rev: v1.20.0
44
hooks:
55
- id: golangci-lint

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ require (
2323
github.com/getsentry/raven-go v0.2.0
2424
github.com/go-kit/kit v0.9.0
2525
github.com/golang/mock v1.3.1
26-
github.com/golangci/golangci-lint v1.19.1
26+
github.com/golangci/golangci-lint v1.20.0
2727
github.com/gomodule/redigo v2.0.0+incompatible // indirect
2828
github.com/google/go-github v0.0.0-20180123235826-b1f138353a62
2929
github.com/google/go-querystring v1.0.0 // indirect

pkg/goenvbuild/preparer.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,11 @@ var availableGolangciLintVersions = map[int]map[int][]int{
3737
17: {0, 1},
3838
18: {0},
3939
19: {0, 1},
40+
20: {0},
4041
},
4142
}
4243

43-
const defaultGolangciLintVersion = "1.19.x"
44+
const defaultGolangciLintVersion = "1.20.x"
4445

4546
type Preparer struct {
4647
cfg config.Config

0 commit comments

Comments
 (0)