Skip to content

Commit e38d614

Browse files
authoredJun 5, 2022
Update minimum supported Go version (prometheus#1062)
Update minimum supported Go to 1.17 to support new module format. Signed-off-by: SuperQ <[email protected]>
1 parent 0dd9392 commit e38d614

File tree

4 files changed

+19
-11
lines changed

4 files changed

+19
-11
lines changed
 

‎.circleci/config.yml

-4
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-16
51-
go_version: "1.16"
52-
run_lint: true
5349
- test:
5450
name: go-1-17
5551
go_version: "1.17"

‎README.md

+1-1
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.16 or later.__
13+
__This library requires Go1.17 or later.__
1414

1515
## Important note about releases and stability
1616

‎go.mod

+16-4
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,31 @@
11
module github.com/prometheus/client_golang
22

3+
go 1.17
4+
35
require (
46
github.com/beorn7/perks v1.0.1
57
github.com/cespare/xxhash/v2 v2.1.2
68
github.com/davecgh/go-spew v1.1.1
79
github.com/golang/protobuf v1.5.2
8-
github.com/jpillora/backoff v1.0.0 // indirect
910
github.com/json-iterator/go v1.1.12
1011
github.com/prometheus/client_model v0.2.0
1112
github.com/prometheus/common v0.34.0
1213
github.com/prometheus/procfs v0.7.3
13-
golang.org/x/sys v0.0.0-20220328115105-d36c6a25d886
14+
golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a
1415
google.golang.org/protobuf v1.28.0
1516
)
1617

17-
exclude github.com/prometheus/client_golang v1.12.1
18+
require (
19+
github.com/jpillora/backoff v1.0.0 // indirect
20+
github.com/matttproud/golang_protobuf_extensions v1.0.1 // indirect
21+
github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421 // indirect
22+
github.com/modern-go/reflect2 v1.0.2 // indirect
23+
github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f // indirect
24+
golang.org/x/net v0.0.0-20220225172249-27dd8689420f // indirect
25+
golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b // indirect
26+
golang.org/x/text v0.3.7 // indirect
27+
google.golang.org/appengine v1.6.6 // indirect
28+
gopkg.in/yaml.v2 v2.4.0 // indirect
29+
)
1830

19-
go 1.16
31+
exclude github.com/prometheus/client_golang v1.12.1

‎go.sum

+2-2
Original file line numberDiff line numberDiff line change
@@ -261,8 +261,8 @@ golang.org/x/sys v0.0.0-20200803210538-64077c9b5642/go.mod h1:h1NjWce9XRLGQEsW7w
261261
golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
262262
golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
263263
golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
264-
golang.org/x/sys v0.0.0-20220328115105-d36c6a25d886 h1:eJv7u3ksNXoLbGSKuv2s/SIO4tJVxc/A+MTpzxDgz/Q=
265-
golang.org/x/sys v0.0.0-20220328115105-d36c6a25d886/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
264+
golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a h1:dGzPydgVsqGcTRVwiLJ1jVbufYwmzD3LfVPLKsKg+0k=
265+
golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
266266
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
267267
golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
268268
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=

0 commit comments

Comments
 (0)