Skip to content

Commit bd9aeef

Browse files
authored
Merge branch 'master' into release_0.10.0
2 parents 9b74f31 + c2a2f9e commit bd9aeef

7 files changed

Lines changed: 97 additions & 76 deletions

File tree

.github/workflows/golangci-lint.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
---
2+
# This action is synced from https://github.com/prometheus/prometheus
13
name: golangci-lint
24
on:
35
push:
@@ -16,15 +18,15 @@ jobs:
1618
runs-on: ubuntu-latest
1719
steps:
1820
- name: Checkout repository
19-
uses: actions/checkout@v3
21+
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
2022
- name: install Go
21-
uses: actions/setup-go@v3
23+
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0
2224
with:
23-
go-version: 1.20.x
25+
go-version: 1.21.x
2426
- name: Install snmp_exporter/generator dependencies
2527
run: sudo apt-get update && sudo apt-get -y install libsnmp-dev
2628
if: github.repository == 'prometheus/snmp_exporter'
2729
- name: Lint
28-
uses: golangci/golangci-lint-action@v3.4.0
30+
uses: golangci/golangci-lint-action@3a919529898de77ec3da873e3063ca4b10e7f5cc # v3.7.0
2931
with:
30-
version: v1.51.2
32+
version: v1.55.2

.golangci.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,9 @@ issues:
66

77
linters-settings:
88
errcheck:
9-
exclude: scripts/errcheck_excludes.txt
9+
exclude-functions:
10+
# Used in HTTP handlers, any error is handled by the server itself.
11+
- (net/http.ResponseWriter).Write
12+
# Never check for logger errors.
13+
- (github.com/go-kit/log.Logger).Log
14+

.yamllint

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,4 @@ rules:
2020
config/testdata/section_key_dup.bad.yml
2121
line-length: disable
2222
truthy:
23-
ignore: |
24-
.github/workflows/*.yml
23+
check-keys: false

Makefile.common

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,13 @@ ifneq ($(shell command -v gotestsum > /dev/null),)
5555
endif
5656
endif
5757

58-
PROMU_VERSION ?= 0.14.0
58+
PROMU_VERSION ?= 0.15.0
5959
PROMU_URL := https://github.com/prometheus/promu/releases/download/v$(PROMU_VERSION)/promu-$(PROMU_VERSION).$(GO_BUILD_PLATFORM).tar.gz
6060

6161
SKIP_GOLANGCI_LINT :=
6262
GOLANGCI_LINT :=
6363
GOLANGCI_LINT_OPTS ?=
64-
GOLANGCI_LINT_VERSION ?= v1.51.2
64+
GOLANGCI_LINT_VERSION ?= v1.55.2
6565
# golangci-lint only supports linux, darwin and windows platforms on i386/amd64.
6666
# windows isn't included here because of the path separator being different.
6767
ifeq ($(GOHOSTOS),$(filter $(GOHOSTOS),linux darwin))

go.mod

Lines changed: 21 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -5,45 +5,48 @@ go 1.18
55
require (
66
github.com/alecthomas/kingpin/v2 v2.3.2
77
github.com/go-kit/log v0.2.1
8-
github.com/hashicorp/consul/api v1.20.0
8+
github.com/hashicorp/consul/api v1.26.1
99
github.com/hashicorp/go-cleanhttp v0.5.2
10-
github.com/prometheus/client_golang v1.15.1
10+
github.com/prometheus/client_golang v1.17.0
1111
github.com/prometheus/common v0.44.0
1212
github.com/prometheus/exporter-toolkit v0.10.0
1313
)
1414

1515
require (
1616
github.com/alecthomas/units v0.0.0-20211218093645-b94a6e3cc137 // indirect
17-
github.com/armon/go-metrics v0.3.10 // indirect
17+
github.com/armon/go-metrics v0.4.1 // indirect
1818
github.com/beorn7/perks v1.0.1 // indirect
1919
github.com/cespare/xxhash/v2 v2.2.0 // indirect
2020
github.com/coreos/go-systemd/v22 v22.5.0 // indirect
21-
github.com/davecgh/go-spew v1.1.1 // indirect
22-
github.com/fatih/color v1.9.0 // indirect
21+
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
22+
github.com/fatih/color v1.14.1 // indirect
2323
github.com/go-logfmt/logfmt v0.5.1 // indirect
2424
github.com/golang/protobuf v1.5.3 // indirect
25-
github.com/hashicorp/go-hclog v0.14.1 // indirect
26-
github.com/hashicorp/go-immutable-radix v1.3.0 // indirect
25+
github.com/hashicorp/errwrap v1.1.0 // indirect
26+
github.com/hashicorp/go-hclog v1.5.0 // indirect
27+
github.com/hashicorp/go-immutable-radix v1.3.1 // indirect
28+
github.com/hashicorp/go-multierror v1.1.1 // indirect
2729
github.com/hashicorp/go-rootcerts v1.0.2 // indirect
2830
github.com/hashicorp/golang-lru v0.5.4 // indirect
2931
github.com/hashicorp/serf v0.10.1 // indirect
3032
github.com/jpillora/backoff v1.0.0 // indirect
31-
github.com/mattn/go-colorable v0.1.6 // indirect
32-
github.com/mattn/go-isatty v0.0.12 // indirect
33+
github.com/mattn/go-colorable v0.1.13 // indirect
34+
github.com/mattn/go-isatty v0.0.17 // indirect
3335
github.com/matttproud/golang_protobuf_extensions v1.0.4 // indirect
3436
github.com/mitchellh/go-homedir v1.1.0 // indirect
35-
github.com/mitchellh/mapstructure v1.4.1 // indirect
37+
github.com/mitchellh/mapstructure v1.5.0 // indirect
3638
github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f // indirect
37-
github.com/prometheus/client_model v0.4.0 // indirect
38-
github.com/prometheus/procfs v0.9.0 // indirect
39+
github.com/prometheus/client_model v0.4.1-0.20230718164431-9a2bf3000d16 // indirect
40+
github.com/prometheus/procfs v0.11.1 // indirect
3941
github.com/xhit/go-str2duration/v2 v2.1.0 // indirect
40-
golang.org/x/crypto v0.8.0 // indirect
41-
golang.org/x/net v0.10.0 // indirect
42+
golang.org/x/crypto v0.14.0 // indirect
43+
golang.org/x/exp v0.0.0-20230817173708-d852ddb80c63 // indirect
44+
golang.org/x/net v0.17.0 // indirect
4245
golang.org/x/oauth2 v0.8.0 // indirect
43-
golang.org/x/sync v0.1.0 // indirect
44-
golang.org/x/sys v0.8.0 // indirect
45-
golang.org/x/text v0.9.0 // indirect
46+
golang.org/x/sync v0.3.0 // indirect
47+
golang.org/x/sys v0.13.0 // indirect
48+
golang.org/x/text v0.13.0 // indirect
4649
google.golang.org/appengine v1.6.7 // indirect
47-
google.golang.org/protobuf v1.30.0 // indirect
50+
google.golang.org/protobuf v1.31.0 // indirect
4851
gopkg.in/yaml.v2 v2.4.0 // indirect
4952
)

0 commit comments

Comments
 (0)