Skip to content

Commit 73711b5

Browse files
authored
Update Go (prometheus#688)
* Update Go * Update Go to 1.19. * Update some Go modules. Signed-off-by: SuperQ <[email protected]>
1 parent 93f3538 commit 73711b5

File tree

5 files changed

+8
-267
lines changed

5 files changed

+8
-267
lines changed

.circleci/config.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ executors:
77
# should also be updated.
88
golang:
99
docker:
10-
- image: cimg/go:1.18
10+
- image: cimg/go:1.19
1111
jobs:
1212
test:
1313
executor: golang
@@ -18,7 +18,7 @@ jobs:
1818
file: mysqld_exporter
1919
integration:
2020
docker:
21-
- image: cimg/go:1.18
21+
- image: cimg/go:1.19
2222
- image: << parameters.mysql_image >>
2323
environment:
2424
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"

.promu.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
go:
22
# Whenever the Go version is updated here, .circle/config.yml should also
33
# be updated.
4-
version: 1.18
4+
version: 1.19
55
repository:
66
path: github.com/prometheus/mysqld_exporter
77
build:

collector/heartbeat.go

+4-2
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,10 @@ var (
6969
// This is mainly targeting pt-heartbeat, but will work with any heartbeat
7070
// implementation that writes to a table with two columns:
7171
// CREATE TABLE heartbeat (
72-
// ts varchar(26) NOT NULL,
73-
// server_id int unsigned NOT NULL PRIMARY KEY,
72+
//
73+
// ts varchar(26) NOT NULL,
74+
// server_id int unsigned NOT NULL PRIMARY KEY,
75+
//
7476
// );
7577
type ScrapeHeartbeat struct{}
7678

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/prometheus/mysqld_exporter
22

3-
go 1.17
3+
go 1.18
44

55
require (
66
github.com/DATA-DOG/go-sqlmock v1.5.0

0 commit comments

Comments
 (0)