From 467cea097fcdfc3d68a4554984e41010012df5bc Mon Sep 17 00:00:00 2001 From: David Ferlay Date: Thu, 23 Feb 2023 16:37:33 +0100 Subject: [PATCH] Update alecthomas/kingpin package import alecthomas/kingpin has recently changed where the package is hosted. This has the consequence to make "go mod tidy" in dovecot_exporter to fail with error : #15 0.425 go: dovecot_exporter imports #15 0.425 gopkg.in/alecthomas/kingpin.v2: gopkg.in/alecthomas/kingpin.v2@v2.3.1: parsing go.mod: #15 0.425 module declares its path as: github.com/alecthomas/kingpin/v2 #15 0.425 but was required as: gopkg.in/alecthomas/kingpin.v2 --- dovecot_exporter.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dovecot_exporter.go b/dovecot_exporter.go index 1ec68ef..7d9662c 100644 --- a/dovecot_exporter.go +++ b/dovecot_exporter.go @@ -26,7 +26,7 @@ import ( "github.com/prometheus/client_golang/prometheus" "github.com/prometheus/client_golang/prometheus/promhttp" - "gopkg.in/alecthomas/kingpin.v2" + "github.com/alecthomas/kingpin/v2" ) var dovecotUpDesc = prometheus.NewDesc(