File tree Expand file tree Collapse file tree 5 files changed +16
-8
lines changed Expand file tree Collapse file tree 5 files changed +16
-8
lines changed Original file line number Diff line number Diff line change @@ -26,14 +26,14 @@ jobs:
26
26
- name : Checkout repository
27
27
uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
28
28
- name : Install Go
29
- uses : actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3 .0
29
+ uses : actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5.4 .0
30
30
with :
31
31
go-version : 1.24.x
32
32
- name : Install snmp_exporter/generator dependencies
33
33
run : sudo apt-get update && sudo apt-get -y install libsnmp-dev
34
34
if : github.repository == 'prometheus/snmp_exporter'
35
35
- name : Lint
36
- uses : golangci/golangci-lint-action@2226d7cb06a077cd73e56eedd38eecad18e5d837 # v6.5 .0
36
+ uses : golangci/golangci-lint-action@1481404843c368bc19ca9406f87d6e0fc97bdcfd # v7.0 .0
37
37
with :
38
38
args : --verbose
39
- version : v1.64.6
39
+ version : v2.0.2
Original file line number Diff line number Diff line change
1
+ linters :
2
+ exclusions :
3
+ rules :
4
+ - linters :
5
+ - errcheck
6
+ # Taken from the default exclusions in v1.
7
+ text : Error return value of .((os\.)?std(out|err)\..*|.*Close|.*Flush|os\.Remove(All)?|.*print(f|ln)?|os\.(Un)?Setenv). is not checked
8
+ version : " 2"
Original file line number Diff line number Diff line change @@ -422,7 +422,7 @@ func run() error {
422
422
}
423
423
424
424
if len (dirs ) != 2 {
425
- return fmt .Errorf ("Expected 2 versions of Go but got %d\n " , len (dirs ))
425
+ return fmt .Errorf ("expected 2 versions of Go but got %d" , len (dirs ))
426
426
}
427
427
428
428
// Get list of available versions
Original file line number Diff line number Diff line change 1
1
module github.com/prometheus/golang-builder
2
2
3
- go 1.22 .0
3
+ go 1.23 .0
4
4
5
- require golang.org/x/mod v0.23 .0
5
+ require golang.org/x/mod v0.24 .0
Original file line number Diff line number Diff line change 1
- golang.org/x/mod v0.23 .0 h1:Zb7khfcRGKk+kqfxFaP5tZqCnDZMjC5VtUBs87Hr6QM =
2
- golang.org/x/mod v0.23 .0 /go.mod h1:6SkKJ3Xj0I0BrPOZoBy3bdMptDDU9oJrpohJ3eWZ1fY =
1
+ golang.org/x/mod v0.24 .0 h1:ZfthKaKaT4NrhGVZHO1/WDTwGES4De8KtWO0SIbNJMU =
2
+ golang.org/x/mod v0.24 .0 /go.mod h1:IXM97Txy2VM4PJ3gI61r1YEk/gAj6zAHN3AdZt6S9Ww =
You can’t perform that action at this time.
0 commit comments