1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
|
Description: Use gopkg.in url for kingpin
kingpin v2 uses the gopkg.in url in its debian packaging. This patch modifies
the source to use it instead of github.
Author: Lena Voytek <lena@voytek.dev>
Forwarded: not-needed
Last-Update: 2024-03-13
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/go.mod
+++ b/go.mod
@@ -3,7 +3,7 @@
go 1.23
require (
- github.com/alecthomas/kingpin/v2 v2.4.0
+ gopkg.in/alecthomas/kingpin.v2 v2.4.0
github.com/go-kit/log v0.2.1
github.com/prometheus/client_golang v1.19.1
github.com/prometheus/common v0.54.0
--- a/pgbackrest_exporter.go
+++ b/pgbackrest_exporter.go
@@ -8,13 +8,13 @@
"syscall"
"time"
- kingpin "github.com/alecthomas/kingpin/v2"
"github.com/go-kit/log"
"github.com/go-kit/log/level"
"github.com/prometheus/common/promlog"
"github.com/prometheus/common/promlog/flag"
"github.com/prometheus/exporter-toolkit/web/kingpinflag"
"github.com/woblerr/pgbackrest_exporter/backrest"
+ kingpin "gopkg.in/alecthomas/kingpin.v2"
)
var version = "unknown"
|