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

Commit 495cefd

Browse files
committed
support golangci-lint 1.18 and 1.19
1 parent 63c55aa commit 495cefd

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

.golangci.yml

+1-1
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.17.x # use fixed version to not introduce new linters unexpectedly
41+
golangci-lint-version: 1.19.x # use fixed version to not introduce new linters unexpectedly

.pre-commit-config.yaml

+1-1
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.17.1
3+
rev: v1.19.1
44
hooks:
55
- id: golangci-lint

go.mod

+3-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ require (
2424
github.com/getsentry/raven-go v0.2.0
2525
github.com/go-kit/kit v0.9.0
2626
github.com/golang/mock v1.3.1
27-
github.com/golangci/golangci-lint v1.17.1
27+
github.com/golangci/golangci-lint v1.19.1
2828
github.com/gomodule/redigo v2.0.0+incompatible // indirect
2929
github.com/google/go-github v0.0.0-20180123235826-b1f138353a62
3030
github.com/google/go-querystring v1.0.0 // indirect
@@ -69,3 +69,5 @@ require (
6969
gopkg.in/redsync.v1 v1.0.1
7070
gopkg.in/yaml.v2 v2.2.2
7171
)
72+
73+
go 1.13

pkg/goenvbuild/preparer.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,12 @@ var availableGolangciLintVersions = map[int]map[int][]int{
3535
15: {0},
3636
16: {0},
3737
17: {0, 1},
38+
18: {0},
39+
19: {0, 1},
3840
},
3941
}
4042

41-
const defaultGolangciLintVersion = "1.17.x"
43+
const defaultGolangciLintVersion = "1.19.x"
4244

4345
type Preparer struct {
4446
cfg config.Config

0 commit comments

Comments
 (0)