Skip to content

Commit ce6eb45

Browse files
committed
Bump minimum required Go version to 1.16
Signed-off-by: Manuel Rüger <manuel@rueg.eu>
1 parent 2417284 commit ce6eb45

File tree

5 files changed

+7
-10
lines changed

5 files changed

+7
-10
lines changed

.circleci/config.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,6 @@ workflows:
4646
client_golang:
4747
jobs:
4848
# 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
5349
- test:
5450
name: go-1-16
5551
go_version: "1.16"

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## Unreleased
2+
3+
* [CHANGE] Minimum required Go version is now 1.16.
4+
15
## 1.12.1 / 2022-01-29
26

37
* [BUGFIX] Make the Go 1.17 collector concurrency-safe #969

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ This is the [Go](http://golang.org) client library for
1010
instrumenting application code, and one for creating clients that talk to the
1111
Prometheus HTTP API.
1212

13-
__This library requires Go1.15 or later.__
13+
__This library requires Go1.16 or later.__
1414

1515
## Important note about releases and stability
1616

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ require (
1212
google.golang.org/protobuf v1.28.0
1313
)
1414

15-
go 1.15
15+
go 1.16

prometheus/collectors/dbstats_collector_test.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ package collectors
1515

1616
import (
1717
"database/sql"
18-
"runtime"
1918
"testing"
2019

2120
"github.com/prometheus/client_golang/prometheus"
@@ -50,9 +49,7 @@ func TestDBStatsCollector(t *testing.T) {
5049
"go_sql_wait_duration_seconds_total",
5150
"go_sql_max_idle_closed_total",
5251
"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",
5653
}
5754
type result struct {
5855
found bool

0 commit comments

Comments
 (0)