Skip to content

Commit 743c7b5

Browse files
authored
PMM-13915 Update module dependencies and Go version (#314)
* PMM-13915 Update module dependencies and Go version Upgraded Go to version 1.23.2 and updated several dependencies to newer versions, including `golang.org/x/crypto`, `golang.org/x/net`, and others. These changes ensure compatibility and leverage the latest improvements and fixes in the upstream libraries. * PMM-13915 Update golangci-lint to version v1.63.4 Upgraded the golangci-lint version in the GitHub Actions workflow to v1.63.4 from v1.54.2. This ensures compatibility with the latest features, bug fixes, and improvements in the linter.
1 parent a2fbc7c commit 743c7b5

File tree

3 files changed

+22
-20
lines changed

3 files changed

+22
-20
lines changed

.github/workflows/golangci-lint.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ jobs:
3131
- name: Lint
3232
uses: golangci/golangci-lint-action@2226d7cb06a077cd73e56eedd38eecad18e5d837 # v6.5.0
3333
with:
34-
version: v1.54.2
34+
version: v1.63.4

go.mod

+9-7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
module github.com/prometheus-community/postgres_exporter
22

3-
go 1.22
3+
go 1.23.0
4+
5+
toolchain go1.23.2
46

57
require (
68
github.com/DATA-DOG/go-sqlmock v1.5.2
@@ -17,8 +19,8 @@ require (
1719
github.com/smartystreets/goconvey v1.8.1
1820
github.com/stretchr/testify v1.10.0
1921
github.com/tklauser/go-sysconf v0.3.14
20-
golang.org/x/sync v0.11.0
21-
golang.org/x/sys v0.30.0
22+
golang.org/x/sync v0.13.0
23+
golang.org/x/sys v0.32.0
2224
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c
2325
gopkg.in/yaml.v2 v2.4.0
2426
gopkg.in/yaml.v3 v3.0.1
@@ -47,9 +49,9 @@ require (
4749
github.com/smarty/assertions v1.15.0 // indirect
4850
github.com/tklauser/numcpus v0.8.0 // indirect
4951
github.com/xhit/go-str2duration/v2 v2.1.0 // indirect
50-
golang.org/x/crypto v0.31.0 // indirect
51-
golang.org/x/net v0.33.0 // indirect
52-
golang.org/x/oauth2 v0.23.0 // indirect
53-
golang.org/x/text v0.21.0 // indirect
52+
golang.org/x/crypto v0.37.0 // indirect
53+
golang.org/x/net v0.39.0 // indirect
54+
golang.org/x/oauth2 v0.29.0 // indirect
55+
golang.org/x/text v0.24.0 // indirect
5456
google.golang.org/protobuf v1.34.2 // indirect
5557
)

go.sum

+12-12
Original file line numberDiff line numberDiff line change
@@ -85,18 +85,18 @@ github.com/tklauser/numcpus v0.8.0 h1:Mx4Wwe/FjZLeQsK/6kt2EOepwwSl7SmJrK5bV/dXYg
8585
github.com/tklauser/numcpus v0.8.0/go.mod h1:ZJZlAY+dmR4eut8epnzf0u/VwodKmryxR8txiloSqBE=
8686
github.com/xhit/go-str2duration/v2 v2.1.0 h1:lxklc02Drh6ynqX+DdPyp5pCKLUQpRT8bp8Ydu2Bstc=
8787
github.com/xhit/go-str2duration/v2 v2.1.0/go.mod h1:ohY8p+0f07DiV6Em5LKB0s2YpLtXVyJfNt1+BlmyAsU=
88-
golang.org/x/crypto v0.31.0 h1:ihbySMvVjLAeSH1IbfcRTkD/iNscyz8rGzjF/E5hV6U=
89-
golang.org/x/crypto v0.31.0/go.mod h1:kDsLvtWBEx7MV9tJOj9bnXsPbxwJQ6csT/x4KIN4Ssk=
90-
golang.org/x/net v0.33.0 h1:74SYHlV8BIgHIFC/LrYkOGIwL19eTYXQ5wc6TBuO36I=
91-
golang.org/x/net v0.33.0/go.mod h1:HXLR5J+9DxmrqMwG9qjGCxZ+zKXxBru04zlTvWlWuN4=
92-
golang.org/x/oauth2 v0.23.0 h1:PbgcYx2W7i4LvjJWEbf0ngHV6qJYr86PkAV3bXdLEbs=
93-
golang.org/x/oauth2 v0.23.0/go.mod h1:XYTD2NtWslqkgxebSiOHnXEap4TF09sJSc7H1sXbhtI=
94-
golang.org/x/sync v0.11.0 h1:GGz8+XQP4FvTTrjZPzNKTMFtSXH80RAzG+5ghFPgK9w=
95-
golang.org/x/sync v0.11.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk=
96-
golang.org/x/sys v0.30.0 h1:QjkSwP/36a20jFYWkSue1YwXzLmsV5Gfq7Eiy72C1uc=
97-
golang.org/x/sys v0.30.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
98-
golang.org/x/text v0.21.0 h1:zyQAAkrwaneQ066sspRyJaG9VNi/YJ1NfzcGB3hZ/qo=
99-
golang.org/x/text v0.21.0/go.mod h1:4IBbMaMmOPCJ8SecivzSH54+73PCFmPWxNTLm+vZkEQ=
88+
golang.org/x/crypto v0.37.0 h1:kJNSjF/Xp7kU0iB2Z+9viTPMW4EqqsrywMXLJOOsXSE=
89+
golang.org/x/crypto v0.37.0/go.mod h1:vg+k43peMZ0pUMhYmVAWysMK35e6ioLh3wB8ZCAfbVc=
90+
golang.org/x/net v0.39.0 h1:ZCu7HMWDxpXpaiKdhzIfaltL9Lp31x/3fCP11bc6/fY=
91+
golang.org/x/net v0.39.0/go.mod h1:X7NRbYVEA+ewNkCNyJ513WmMdQ3BineSwVtN2zD/d+E=
92+
golang.org/x/oauth2 v0.29.0 h1:WdYw2tdTK1S8olAzWHdgeqfy+Mtm9XNhv/xJsY65d98=
93+
golang.org/x/oauth2 v0.29.0/go.mod h1:onh5ek6nERTohokkhCD/y2cV4Do3fxFHFuAejCkRWT8=
94+
golang.org/x/sync v0.13.0 h1:AauUjRAJ9OSnvULf/ARrrVywoJDy0YS2AwQ98I37610=
95+
golang.org/x/sync v0.13.0/go.mod h1:1dzgHSNfp02xaA81J2MS99Qcpr2w7fw1gpm99rleRqA=
96+
golang.org/x/sys v0.32.0 h1:s77OFDvIQeibCmezSnk/q6iAfkdiQaJi4VzroCFrN20=
97+
golang.org/x/sys v0.32.0/go.mod h1:BJP2sWEmIv4KK5OTEluFJCKSidICx8ciO85XgH3Ak8k=
98+
golang.org/x/text v0.24.0 h1:dd5Bzh4yt5KYA8f9CJHCP4FB4D51c2c6JvN37xJJkJ0=
99+
golang.org/x/text v0.24.0/go.mod h1:L8rBsPeo2pSS+xqN0d5u2ikmjtmoJbDBT1b7nHvFCdU=
100100
google.golang.org/protobuf v1.34.2 h1:6xV6lTsCfpGD21XK49h7MhtcApnLqkfYgPcdHftf6hg=
101101
google.golang.org/protobuf v1.34.2/go.mod h1:qYOHts0dSfpeUzUFpOMr/WGzszTmLH+DiWniOlNbLDw=
102102
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=

0 commit comments

Comments
 (0)