diff --git a/config/config.go b/config/config.go index b0ff31ce..b7f08bd5 100644 --- a/config/config.go +++ b/config/config.go @@ -19,7 +19,7 @@ import ( "github.com/prometheus-community/windows_exporter/log" "gopkg.in/alecthomas/kingpin.v2" - "gopkg.in/yaml.v2" + "gopkg.in/yaml.v3" ) type getFlagger interface { diff --git a/config/flatten_test.go b/config/flatten_test.go index 48d969fb..2fc766b5 100644 --- a/config/flatten_test.go +++ b/config/flatten_test.go @@ -1,7 +1,7 @@ package config import ( - "gopkg.in/yaml.v2" + "gopkg.in/yaml.v3" "reflect" "testing" ) diff --git a/go.mod b/go.mod index e43380fa..2bd9b4e6 100644 --- a/go.mod +++ b/go.mod @@ -16,5 +16,5 @@ require ( github.com/sirupsen/logrus v1.8.1 golang.org/x/sys v0.0.0-20220114195835-da31bd327af9 gopkg.in/alecthomas/kingpin.v2 v2.2.6 - gopkg.in/yaml.v2 v2.4.0 + gopkg.in/yaml.v3 v3.0.0 ) diff --git a/go.sum b/go.sum index 8f02be64..41da206c 100644 --- a/go.sum +++ b/go.sum @@ -1080,8 +1080,9 @@ gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= -gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= +gopkg.in/yaml.v3 v3.0.0 h1:hjy8E9ON/egN1tAYqKb61G10WtihqetD4sz2H+8nIeA= +gopkg.in/yaml.v3 v3.0.0/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gotest.tools v2.2.0+incompatible/go.mod h1:DsYFclhRJ6vuDpmuTbkuFWG+y2sxOXAzmJt81HFBacw= gotest.tools/v3 v3.0.2/go.mod h1:3SzNCllyD9/Y+b5r9JIKQ474KzkZyqLqEfYqMsX94Bk= gotest.tools/v3 v3.0.3/go.mod h1:Z7Lb0S5l+klDB31fvDQX8ss/FlKDxtlFlw3Oa8Ymbl8=