Description: Use the packaged version of kingpin
 Build fails with original import for some reason.
Author: Valentin Vidic <vvidic@debian.org>
Last-Update: 2024-08-03
---
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/golang/mock v1.6.0
 	github.com/pkg/errors v0.9.1
--- a/main.go
+++ b/main.go
@@ -21,7 +21,7 @@
 	"github.com/spf13/viper"
 	// we could use this but want to define our own defaults
 	// webflag "github.com/prometheus/exporter-toolkit/web/kingpinflag"
-	"github.com/alecthomas/kingpin/v2"
+	"gopkg.in/alecthomas/kingpin.v2"
 
 	"github.com/ClusterLabs/ha_cluster_exporter/collector"
 	"github.com/ClusterLabs/ha_cluster_exporter/collector/corosync"
