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

Commit 3874bea

Browse files
committed
support golangci-lint v1.20.1 and v1.21.0
1 parent fbe5e49 commit 3874bea

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
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.20.x # use fixed version to not introduce new linters unexpectedly
41+
golangci-lint-version: 1.21.x # use fixed version to not introduce new linters unexpectedly

pkg/goenvbuild/preparer.go

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

44-
const defaultGolangciLintVersion = "1.20.x"
45+
const defaultGolangciLintVersion = "1.21.x"
4546

4647
type Preparer struct {
4748
cfg config.Config

0 commit comments

Comments
 (0)