Skip to content

Commit 8b1ab7c

Browse files
authored
Bump go to 1.25 (#141)
Bumps go to version 1.25 and fixes lint errors.
1 parent 8b7fab2 commit 8b1ab7c

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

.github/workflows/publish.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ jobs:
2929
name: CD
3030
uses: grafana/plugin-ci-workflows/.github/workflows/cd.yml@main
3131
with:
32-
golangci-lint-version: '1.64.6'
32+
golangci-lint-version: '2.4.0'
33+
go-version: '1.25'
3334
branch: ${{ github.event.inputs.branch }}
3435
environment: ${{ github.event.inputs.environment }}
3536
docs-only: ${{ fromJSON(github.event.inputs.docs-only) }}

.github/workflows/push.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ jobs:
1616
name: CI
1717
uses: grafana/plugin-ci-workflows/.github/workflows/ci.yml@main
1818
with:
19-
golangci-lint-version: '1.64.6'
19+
golangci-lint-version: '2.4.0'
20+
go-version: '1.25'
2021
plugin-version-suffix: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || '' }}
2122
run-playwright: true

go.mod

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

3-
go 1.24.6
3+
go 1.25
44

55
require (
66
github.com/eclipse/paho.mqtt.golang v1.5.0

pkg/mqtt/client_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ func TestClient_Subscribe_Deduplication(t *testing.T) {
166166

167167
// Verify only one topic is stored
168168
count := 0
169-
c.topics.Map.Range(func(key, value interface{}) bool {
169+
c.topics.Range(func(key, value any) bool {
170170
count++
171171
return true
172172
})
@@ -199,7 +199,7 @@ func TestClient_Subscribe_MultipleStreamingKeys(t *testing.T) {
199199

200200
// Verify all three topics are stored separately
201201
count := 0
202-
c.topics.Map.Range(func(key, value interface{}) bool {
202+
c.topics.Range(func(key, value any) bool {
203203
count++
204204
return true
205205
})

0 commit comments

Comments
 (0)