File: use-gopkg-kingpin-v2.patch

package info (click to toggle)
prometheus-script-exporter 3.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 336 kB
  • sloc: makefile: 51; sh: 41
file content (37 lines) | stat: -rw-r--r-- 1,167 bytes parent folder | download
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
37
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: 2025-09-06
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/go.mod
+++ b/go.mod
@@ -3,7 +3,7 @@
 go 1.24.0

 require (
-	github.com/alecthomas/kingpin/v2 v2.4.0
+	gopkg.in/alecthomas/kingpin.v2 v2.4.0
 	github.com/goccy/go-yaml v1.17.1
 	github.com/prometheus/client_golang v1.22.0-rc.0
 	github.com/prometheus/common v0.63.0
--- a/cmd/main.go
+++ b/cmd/main.go
@@ -17,7 +17,6 @@
 	"github.com/ricoberger/script_exporter/discovery"
 	"github.com/ricoberger/script_exporter/prober"

-	"github.com/alecthomas/kingpin/v2"
 	"github.com/goccy/go-yaml"
 	"github.com/prometheus/client_golang/prometheus"
 	versioncollector "github.com/prometheus/client_golang/prometheus/collectors/version"
@@ -27,6 +26,7 @@
 	"github.com/prometheus/common/version"
 	"github.com/prometheus/exporter-toolkit/web"
 	webflag "github.com/prometheus/exporter-toolkit/web/kingpinflag"
+	"gopkg.in/alecthomas/kingpin.v2"
 )

 var (