Skip to content

Commit ae56b3a

Browse files
committed
chore: downgrade to go1.19
1 parent 6459b31 commit ae56b3a

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/golangci/golangci-lint
22

3-
go 1.20
3+
go 1.19
44

55
require (
66
4d63.com/gocheckcompilerdirectives v1.2.1

netlify.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
[context.production.environment]
2-
GO_VERSION = "1.20"
2+
GO_VERSION = "1.19"
33
NODE_VERSION = "17"
44
# TODO https://github.com/golangci/golangci-lint/pull/2904#issuecomment-1146870535
55
# NPM_FLAGS = "--legacy-peer-deps"
66
# NPM_FLAGS = "--force"
77
NPM_VERSION = "8.5.5"
88

99
[context.deploy-preview.environment]
10-
GO_VERSION = "1.20"
10+
GO_VERSION = "1.19"
1111
NODE_VERSION = "17"
1212
# TODO https://github.com/golangci/golangci-lint/pull/2904#issuecomment-1146870535
1313
# NPM_FLAGS = "--legacy-peer-deps"
1414
# NPM_FLAGS = "--force"
1515
NPM_VERSION = "8.5.5"
1616

1717
[context.branch-deploy.environment]
18-
GO_VERSION = "1.20"
18+
GO_VERSION = "1.19"
1919
NODE_VERSION = "17"
2020
# TODO https://github.com/golangci/golangci-lint/pull/2904#issuecomment-1146870535
2121
# NPM_FLAGS = "--legacy-peer-deps"

pkg/lint/lintersdb/custom_linters.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package lintersdb
22

33
import (
4-
"errors"
54
"fmt"
65
"path/filepath"
76
"plugin"
@@ -98,7 +97,8 @@ func (m *Manager) lookupPlugin(plug *plugin.Plugin, settings any) ([]*analysis.A
9897
if err != nil {
9998
analyzers, errP := m.lookupAnalyzerPlugin(plug)
10099
if err != nil {
101-
return nil, errors.Join(err, errP)
100+
// TODO(ldez): use `errors.Join` when we will upgrade to go1.20.
101+
return nil, fmt.Errorf("%s: %w", err, errP)
102102
}
103103

104104
return analyzers, nil
@@ -119,7 +119,8 @@ func (m *Manager) lookupAnalyzerPlugin(plug *plugin.Plugin) ([]*analysis.Analyze
119119
return nil, err
120120
}
121121

122-
m.log.Warnf("plugin: 'AnalyzerPlugin' plugins are deprecated, please the new plugin signature: https://golangci-lint.run/contributing/new-linters/#create-a-plugin")
122+
m.log.Warnf("plugin: 'AnalyzerPlugin' plugins are deprecated, please the new plugin signature:" +
123+
"https://golangci-lint.run/contributing/new-linters/#create-a-plugin")
123124

124125
analyzerPlugin, ok := symbol.(AnalyzerPlugin)
125126
if !ok {

0 commit comments

Comments
 (0)