From 00f84cf707d7384c9f983aad5afc8060272dc522 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 14 Jun 2023 12:48:44 +0000 Subject: [PATCH] fix(deps): update module gopkg.in/yaml.v2 to v3 --- go.mod | 2 +- go.sum | 3 +-- yaml/manifest.go | 2 +- yaml/parse.go | 2 +- yaml/pretty/writer_test.go | 2 +- yaml/unit_test.go | 2 +- 6 files changed, 6 insertions(+), 7 deletions(-) diff --git a/go.mod b/go.mod index 7bf7690..08c7c26 100644 --- a/go.mod +++ b/go.mod @@ -7,7 +7,7 @@ require ( github.com/bmatcuk/doublestar/v4 v4.6.0 github.com/docker/go-units v0.5.0 github.com/google/go-cmp v0.5.9 - gopkg.in/yaml.v2 v2.4.0 + gopkg.in/yaml.v3 v3.0.1 ) require ( diff --git a/go.sum b/go.sum index f78202c..9c22583 100644 --- a/go.sum +++ b/go.sum @@ -26,6 +26,5 @@ gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8 gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 h1:qIbj1fsPNlZgppZ+VLlY7N33q108Sa+fhmuc+sWQYwY= gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v2 v2.2.2/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.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= +gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= diff --git a/yaml/manifest.go b/yaml/manifest.go index 992e79c..596cfed 100644 --- a/yaml/manifest.go +++ b/yaml/manifest.go @@ -8,7 +8,7 @@ import ( "encoding/json" "errors" - "gopkg.in/yaml.v2" + "gopkg.in/yaml.v3" ) // Resource enums. diff --git a/yaml/parse.go b/yaml/parse.go index ae97544..42e94d4 100644 --- a/yaml/parse.go +++ b/yaml/parse.go @@ -11,7 +11,7 @@ import ( "os" "strings" - "gopkg.in/yaml.v2" + "gopkg.in/yaml.v3" ) var ErrMissingKind = errors.New("yaml: missing kind attribute") diff --git a/yaml/pretty/writer_test.go b/yaml/pretty/writer_test.go index 7d0858e..589c803 100644 --- a/yaml/pretty/writer_test.go +++ b/yaml/pretty/writer_test.go @@ -7,7 +7,7 @@ import ( "strings" "testing" - "gopkg.in/yaml.v2" + "gopkg.in/yaml.v3" ) // this unit tests pretty prints a complex yaml structure diff --git a/yaml/unit_test.go b/yaml/unit_test.go index 4233cc0..2c91132 100644 --- a/yaml/unit_test.go +++ b/yaml/unit_test.go @@ -6,7 +6,7 @@ package yaml import ( "testing" - "gopkg.in/yaml.v2" + "gopkg.in/yaml.v3" ) func TestBytesSize(t *testing.T) {