File tree Expand file tree Collapse file tree 5 files changed +7
-10
lines changed Expand file tree Collapse file tree 5 files changed +7
-10
lines changed Original file line number Diff line number Diff line change @@ -46,10 +46,6 @@ workflows:
46
46
client_golang :
47
47
jobs :
48
48
# Refer to README.md for the currently supported versions.
49
- - test :
50
- name : go-1-15
51
- go_version : " 1.15"
52
- run_lint : true
53
49
- test :
54
50
name : go-1-16
55
51
go_version : " 1.16"
Original file line number Diff line number Diff line change
1
+ ## Unreleased
2
+
3
+ * [ CHANGE] Minimum required Go version is now 1.16.
4
+
1
5
## 1.12.1 / 2022-01-29
2
6
3
7
* [ BUGFIX] Make the Go 1.17 collector concurrency-safe #969
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ This is the [Go](http://golang.org) client library for
10
10
instrumenting application code, and one for creating clients that talk to the
11
11
Prometheus HTTP API.
12
12
13
- __ This library requires Go1.15 or later.__
13
+ __ This library requires Go1.16 or later.__
14
14
15
15
## Important note about releases and stability
16
16
Original file line number Diff line number Diff line change @@ -12,4 +12,4 @@ require (
12
12
google.golang.org/protobuf v1.28.0
13
13
)
14
14
15
- go 1.15
15
+ go 1.16
Original file line number Diff line number Diff line change @@ -15,7 +15,6 @@ package collectors
15
15
16
16
import (
17
17
"database/sql"
18
- "runtime"
19
18
"testing"
20
19
21
20
"github.com/prometheus/client_golang/prometheus"
@@ -50,9 +49,7 @@ func TestDBStatsCollector(t *testing.T) {
50
49
"go_sql_wait_duration_seconds_total" ,
51
50
"go_sql_max_idle_closed_total" ,
52
51
"go_sql_max_lifetime_closed_total" ,
53
- }
54
- if runtime .Version () >= "go1.15" {
55
- names = append (names , "go_sql_max_idle_time_closed_total" )
52
+ "go_sql_max_idle_time_closed_total" ,
56
53
}
57
54
type result struct {
58
55
found bool
You can’t perform that action at this time.
0 commit comments