Skip to content

Commit fe37bab

Browse files
committed
Update golangci-lint to v2.6.2
1 parent b0d347e commit fe37bab

File tree

16 files changed

+13
-16
lines changed

16 files changed

+13
-16
lines changed

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ jobs:
99
- name: Set up Go
1010
uses: actions/setup-go@v6
1111
with:
12-
go-version: 1.24
12+
go-version-file: go.mod
1313
- name: golangci-lint
1414
run: make lint

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ else
119119
LOGCOUNTER=*dont-include-log-counter
120120
endif
121121

122-
GOLANGCI_LINT_VERSION := v2.2.0
122+
GOLANGCI_LINT_VERSION := v2.6.2
123123
GOLANGCI_LINT := ./.bin/golangci-lint
124124

125125
lint: $(GOLANGCI_LINT)

cmd/nodeproblemdetector/exporterplugins/stackdriver_exporter_plugin.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
//go:build !disable_stackdriver_exporter
2-
// +build !disable_stackdriver_exporter
32

43
/*
54
Copyright 2019 The Kubernetes Authors All rights reserved.

cmd/nodeproblemdetector/node_problem_detector_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
//go:build !disable_system_log_monitor
2-
// +build !disable_system_log_monitor
32

43
/*
54
Copyright 2021 The Kubernetes Authors All rights reserved.

cmd/nodeproblemdetector/node_problem_detector_windows_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
//go:build !disable_system_log_monitor
2-
// +build !disable_system_log_monitor
32

43
/*
54
Copyright 2021 The Kubernetes Authors All rights reserved.

cmd/nodeproblemdetector/problemdaemonplugins/custom_plugin_monitor_plugin.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
//go:build !disable_custom_plugin_monitor
2-
// +build !disable_custom_plugin_monitor
32

43
/*
54
Copyright 2019 The Kubernetes Authors All rights reserved.

cmd/nodeproblemdetector/problemdaemonplugins/system_log_monitor_plugin.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
//go:build !disable_system_log_monitor
2-
// +build !disable_system_log_monitor
32

43
/*
54
Copyright 2019 The Kubernetes Authors All rights reserved.

cmd/nodeproblemdetector/problemdaemonplugins/system_stats_monitor_plugin.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
//go:build !disable_system_stats_monitor
2-
// +build !disable_system_stats_monitor
32

43
/*
54
Copyright 2019 The Kubernetes Authors All rights reserved.

pkg/custompluginmonitor/plugin/plugin.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ func (p *Plugin) run(rule cpmtypes.CustomRule) (exitStatus cpmtypes.Status, outp
154154
}
155155
defer cancel()
156156

157-
cmd := util.Exec(rule.Path, rule.Args...)
157+
cmd := util.Exec(ctx, rule.Path, rule.Args...)
158158

159159
stdoutPipe, err := cmd.StdoutPipe()
160160
if err != nil {

pkg/exporters/stackdriver/stackdriver_exporter_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
//go:build !disable_stackdriver_exporter
2-
// +build !disable_stackdriver_exporter
32

43
/*
54
Copyright 2019 The Kubernetes Authors All rights reserved.

0 commit comments

Comments
 (0)