Skip to content

Commit cb16d24

Browse files
authored
Merge branch 'master' into patch-1
2 parents a8a32bd + 1c1ae57 commit cb16d24

File tree

4 files changed

+164
-48
lines changed

4 files changed

+164
-48
lines changed

Makefile.common

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,16 +58,19 @@ endif
5858
PROMU_VERSION ?= 0.13.0
5959
PROMU_URL := https://github.com/prometheus/promu/releases/download/v$(PROMU_VERSION)/promu-$(PROMU_VERSION).$(GO_BUILD_PLATFORM).tar.gz
6060

61+
SKIP_GOLANGCI_LINT :=
6162
GOLANGCI_LINT :=
6263
GOLANGCI_LINT_OPTS ?=
63-
GOLANGCI_LINT_VERSION ?= v1.45.2
64+
GOLANGCI_LINT_VERSION ?= v1.49.0
6465
# golangci-lint only supports linux, darwin and windows platforms on i386/amd64.
6566
# windows isn't included here because of the path separator being different.
6667
ifeq ($(GOHOSTOS),$(filter $(GOHOSTOS),linux darwin))
6768
ifeq ($(GOHOSTARCH),$(filter $(GOHOSTARCH),amd64 i386))
6869
# If we're in CI and there is an Actions file, that means the linter
6970
# is being run in Actions, so we don't need to run it here.
70-
ifeq (,$(CIRCLE_JOB))
71+
ifneq (,$(SKIP_GOLANGCI_LINT))
72+
GOLANGCI_LINT :=
73+
else ifeq (,$(CIRCLE_JOB))
7174
GOLANGCI_LINT := $(FIRST_GOPATH)/bin/golangci-lint
7275
else ifeq (,$(wildcard .github/workflows/golangci-lint.yml))
7376
GOLANGCI_LINT := $(FIRST_GOPATH)/bin/golangci-lint

examples/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ modules:
99
environment: beta # static label
1010
location: "planet-{.location}" # dynamic label
1111
- name: example_timestamped_value
12-
path: "{ .values[?(@.state == "INACTIVE")] }"
12+
path: '{ .values[?(@.state == "INACTIVE")] }'
1313
epochTimestamp: "{ .timestamp }"
1414
help: Example of a timestamped value scrape in the json
1515
labels:

go.mod

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ go 1.17
55
require (
66
github.com/Masterminds/sprig/v3 v3.2.2
77
github.com/go-kit/log v0.2.1
8-
github.com/prometheus/client_golang v1.12.2
8+
github.com/prometheus/client_golang v1.13.0
99
github.com/prometheus/common v0.37.0
1010
github.com/prometheus/exporter-toolkit v0.7.1
1111
gopkg.in/alecthomas/kingpin.v2 v2.2.6
1212
gopkg.in/yaml.v2 v2.4.0
13-
k8s.io/client-go v0.24.3
13+
k8s.io/client-go v0.25.3
1414
)
1515

1616
require (
@@ -26,20 +26,22 @@ require (
2626
github.com/huandu/xstrings v1.3.1 // indirect
2727
github.com/imdario/mergo v0.3.11 // indirect
2828
github.com/jpillora/backoff v1.0.0 // indirect
29+
github.com/kr/pretty v0.3.0 // indirect
2930
github.com/matttproud/golang_protobuf_extensions v1.0.1 // indirect
3031
github.com/mitchellh/copystructure v1.0.0 // indirect
3132
github.com/mitchellh/reflectwalk v1.0.0 // indirect
3233
github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f // indirect
3334
github.com/pkg/errors v0.9.1 // indirect
3435
github.com/prometheus/client_model v0.2.0 // indirect
35-
github.com/prometheus/procfs v0.7.3 // indirect
36+
github.com/prometheus/procfs v0.8.0 // indirect
3637
github.com/shopspring/decimal v1.2.0 // indirect
3738
github.com/spf13/cast v1.3.1 // indirect
38-
golang.org/x/crypto v0.0.0-20220214200702-86341886e292 // indirect
39-
golang.org/x/net v0.0.0-20220225172249-27dd8689420f // indirect
39+
golang.org/x/crypto v0.0.0-20220315160706-3147a52a75dd // indirect
40+
golang.org/x/net v0.0.0-20220722155237-a158d28d115b // indirect
4041
golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b // indirect
41-
golang.org/x/sys v0.0.0-20220209214540-3681064d5158 // indirect
42+
golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f // indirect
4243
golang.org/x/text v0.3.7 // indirect
4344
google.golang.org/appengine v1.6.7 // indirect
44-
google.golang.org/protobuf v1.27.1 // indirect
45+
google.golang.org/protobuf v1.28.1 // indirect
46+
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect
4547
)

0 commit comments

Comments
 (0)