Skip to content

Commit 819c197

Browse files
committed
chore: update dependencies
1 parent fd25682 commit 819c197

6 files changed

Lines changed: 146 additions & 48 deletions

File tree

.promu.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
verbose: true
21
go:
3-
version: 1.16
2+
version: 1.20.4
43
cgo: false
54
repository:
65
path: github.com/pgpool/pgpool2_exporter
@@ -17,4 +16,4 @@ build:
1716
-X github.com/prometheus/common/version.BuildDate={{date "20060102-15:04:05"}}
1817
tarball:
1918
files:
20-
- LICENSE
19+
- LICENSE

Makefile

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
GO := go
22
GOPATH := $(firstword $(subst :, ,$(shell $(GO) env GOPATH)))
33

4-
PROMU ?= $(GOPATH)/bin/promu
4+
PROMU ?= $(GOPATH)/bin/promu -v
55
pkgs = $(shell $(GO) list ./... | grep -v /vendor/)
66

77
PREFIX ?= $(shell pwd)
@@ -20,7 +20,11 @@ crossbuild: promu
2020
@echo ">> building cross-platform binaries"
2121
@$(PROMU) crossbuild
2222

23-
promu:
23+
get-promu:
24+
@echo ">> downloading promu"
25+
go get github.com/prometheus/promu
26+
27+
promu: get-promu
2428
@GOOS=$(shell uname -s | tr A-Z a-z) \
2529
GOARCH=$(subst x86_64,amd64,$(patsubst i%86,386,$(shell uname -m))) \
2630
$(GO) install github.com/prometheus/promu
@@ -37,6 +41,10 @@ docker: build
3741
@echo ">> building docker image"
3842
@docker build -t "$(DOCKER_REPO)/$(DOCKER_IMAGE_NAME):$(DOCKER_IMAGE_TAG)" .
3943

44+
push: docker
45+
@echo ">> pushing docker image to registry"
46+
@docker image push "$(DOCKER_REPO)/$(DOCKER_IMAGE_NAME):$(DOCKER_IMAGE_TAG)"
47+
4048
clean:
4149
@echo ">> cleaning up build output"
4250
rm -f $(PREFIX)/pgpool2_exporter

cmd/pgpool2_exporter/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
"github.com/prometheus/common/promlog"
1313
"github.com/prometheus/common/promlog/flag"
1414
"github.com/prometheus/common/version"
15-
"gopkg.in/alecthomas/kingpin.v2"
15+
"github.com/alecthomas/kingpin/v2"
1616

1717
exp "github.com/pgpool/pgpool2_exporter"
1818
)

go.mod

Lines changed: 22 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,28 +3,35 @@ module github.com/pgpool/pgpool2_exporter
33
go 1.17
44

55
require (
6+
github.com/alecthomas/kingpin/v2 v2.3.2
67
github.com/blang/semver v3.5.1+incompatible
7-
github.com/go-kit/log v0.2.0
8-
github.com/golang/protobuf v1.5.2 // indirect
8+
github.com/go-kit/log v0.2.1
9+
github.com/golang/protobuf v1.5.3 // indirect
910
github.com/lib/pq v1.10.2
10-
github.com/prometheus/client_golang v1.12.0
11-
github.com/prometheus/common v0.32.1
12-
github.com/prometheus/procfs v0.7.3 // indirect
13-
github.com/stretchr/testify v1.7.0 // indirect
14-
golang.org/x/sys v0.0.0-20220114195835-da31bd327af9 // indirect
15-
google.golang.org/protobuf v1.27.1 // indirect
16-
gopkg.in/alecthomas/kingpin.v2 v2.2.6
17-
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect
11+
github.com/prometheus/client_golang v1.15.1
12+
github.com/prometheus/common v0.44.0
13+
github.com/prometheus/procfs v0.9.0 // indirect
14+
github.com/stretchr/testify v1.8.4 // indirect
15+
golang.org/x/sys v0.9.0 // indirect
16+
google.golang.org/protobuf v1.30.0 // indirect
1817
)
1918

2019
require (
21-
github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751 // indirect
20+
github.com/Masterminds/semver v1.5.0 // indirect
2221
github.com/alecthomas/units v0.0.0-20211218093645-b94a6e3cc137 // indirect
2322
github.com/beorn7/perks v1.0.1 // indirect
24-
github.com/cespare/xxhash/v2 v2.1.2 // indirect
23+
github.com/cespare/xxhash/v2 v2.2.0 // indirect
2524
github.com/go-logfmt/logfmt v0.5.1 // indirect
26-
github.com/google/go-cmp v0.5.6 // indirect
27-
github.com/matttproud/golang_protobuf_extensions v1.0.1 // indirect
25+
github.com/google/go-github/v25 v25.1.3 // indirect
26+
github.com/google/go-querystring v1.0.0 // indirect
27+
github.com/matttproud/golang_protobuf_extensions v1.0.4 // indirect
2828
github.com/pkg/errors v0.9.1 // indirect
29-
github.com/prometheus/client_model v0.2.0 // indirect
29+
github.com/prometheus/client_model v0.4.0 // indirect
30+
github.com/prometheus/promu v0.15.0 // indirect
31+
github.com/xhit/go-str2duration/v2 v2.1.0 // indirect
32+
go.uber.org/atomic v1.11.0 // indirect
33+
golang.org/x/net v0.11.0 // indirect
34+
golang.org/x/oauth2 v0.9.0 // indirect
35+
google.golang.org/appengine v1.6.7 // indirect
36+
gopkg.in/yaml.v2 v2.4.0 // indirect
3037
)

0 commit comments

Comments
 (0)