Skip to content

Commit

Permalink
Update Go modules
Browse files Browse the repository at this point in the history
* Update Go testing to 1.18.
* Update Go minimum version to 1.17.
* Update Go module format for 1.17.
* Bump Go modules.

Signed-off-by: SuperQ <superq@gmail.com>
  • Loading branch information
SuperQ authored and radek-ryckowski committed May 18, 2023
1 parent 007f533 commit d997471
Show file tree
Hide file tree
Showing 4 changed files with 315 additions and 23 deletions.
6 changes: 4 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
version: 2.1

orbs:
go: circleci/go@0.2.0
go: circleci/go@1.7.1

jobs:
test:
Expand All @@ -14,6 +14,9 @@ jobs:
default: true
docker:
- image: cimg/go:<< parameters.go_version >>
environment:
# Override Go 1.18 security deprecations.
GODEBUG: "x509sha1=1,tls10default=1"
steps:
- checkout
- when:
Expand Down Expand Up @@ -91,7 +94,6 @@ workflows:
matrix:
parameters:
go_version:
- "1.16"
- "1.17"
- "1.18"
- test-assets:
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,11 @@ jobs:
- name: install Go
uses: actions/setup-go@v2
with:
go-version: 1.17.x
go-version: 1.18.x
- name: Install snmp_exporter/generator dependencies
run: sudo apt-get update && sudo apt-get -y install libsnmp-dev
if: github.repository == 'prometheus/snmp_exporter'
- name: Lint
uses: golangci/golangci-lint-action@v3.1.0
uses: golangci/golangci-lint-action@v3.2.0
with:
version: v1.44.2
version: v1.45.2
26 changes: 21 additions & 5 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,17 +1,33 @@
module github.com/prometheus/common

go 1.17

require (
github.com/go-kit/log v0.2.0
github.com/go-kit/log v0.2.1
github.com/golang/protobuf v1.5.2
github.com/julienschmidt/httprouter v1.3.0
github.com/matttproud/golang_protobuf_extensions v1.0.1
github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f
github.com/prometheus/client_golang v1.12.1
github.com/prometheus/client_golang v1.13.0
github.com/prometheus/client_model v0.2.0
golang.org/x/net v0.0.0-20220225172249-27dd8689420f
golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b
golang.org/x/net v0.0.0-20220805013720-a33c5aa5df48
golang.org/x/oauth2 v0.0.0-20220722155238-128564f6959c
gopkg.in/alecthomas/kingpin.v2 v2.2.6
gopkg.in/yaml.v2 v2.4.0
)

go 1.16
require (
github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751 // indirect
github.com/alecthomas/units v0.0.0-20190924025748-f65c72e2690d // indirect
github.com/beorn7/perks v1.0.1 // indirect
github.com/cespare/xxhash/v2 v2.1.2 // indirect
github.com/go-logfmt/logfmt v0.5.1 // indirect
github.com/jpillora/backoff v1.0.0 // indirect
github.com/prometheus/procfs v0.8.0 // indirect
github.com/stretchr/testify v1.8.0 // indirect
golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect
golang.org/x/text v0.3.7 // indirect
google.golang.org/appengine v1.6.7 // indirect
google.golang.org/protobuf v1.28.1 // indirect
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect
)

0 comments on commit d997471

Please sign in to comment.