From 13aec72602bff3f9196f193f48950da36c25495f Mon Sep 17 00:00:00 2001 From: Lunar Renovate <115620512+lunar-renovate@users.noreply.github.com> Date: Sun, 22 Oct 2023 14:58:09 +0000 Subject: [PATCH] fix(deps): update module gopkg.in/yaml.v2 to v3 --- cmd/get.go | 2 +- go.mod | 3 +-- pkg/config/shuttleconfig.go | 2 +- pkg/config/shuttleplan.go | 2 +- pkg/sdk/context.go | 2 +- pkg/templates/funcs.go | 2 +- pkg/templates/funcs_test.go | 2 +- 7 files changed, 7 insertions(+), 8 deletions(-) diff --git a/cmd/get.go b/cmd/get.go index 1243695..d7a83b7 100644 --- a/cmd/get.go +++ b/cmd/get.go @@ -4,7 +4,7 @@ import ( "fmt" "strings" - "gopkg.in/yaml.v2" + "gopkg.in/yaml.v3" "github.com/lunarway/shuttle/pkg/errors" "github.com/lunarway/shuttle/pkg/templates" diff --git a/go.mod b/go.mod index bb170ce..ab6bcbe 100644 --- a/go.mod +++ b/go.mod @@ -12,7 +12,7 @@ require ( github.com/spf13/cobra v1.7.0 github.com/stretchr/testify v1.8.4 golang.org/x/exp v0.0.0-20230905200255-921286631fa9 - gopkg.in/yaml.v3 v3.0.1 // indirect + gopkg.in/yaml.v3 v3.0.1 ) require ( @@ -24,7 +24,6 @@ require ( github.com/otiai10/copy v1.12.0 golang.org/x/mod v0.12.0 golang.org/x/sync v0.3.0 - gopkg.in/yaml.v2 v2.4.0 ) require ( diff --git a/pkg/config/shuttleconfig.go b/pkg/config/shuttleconfig.go index d841f80..448c613 100644 --- a/pkg/config/shuttleconfig.go +++ b/pkg/config/shuttleconfig.go @@ -9,7 +9,7 @@ import ( shuttleerrors "github.com/lunarway/shuttle/pkg/errors" "github.com/lunarway/shuttle/pkg/ui" - "gopkg.in/yaml.v2" + "gopkg.in/yaml.v3" ) // DynamicYaml are any yaml document diff --git a/pkg/config/shuttleplan.go b/pkg/config/shuttleplan.go index 040704c..a11e092 100644 --- a/pkg/config/shuttleplan.go +++ b/pkg/config/shuttleplan.go @@ -12,7 +12,7 @@ import ( "github.com/lunarway/shuttle/pkg/errors" "github.com/lunarway/shuttle/pkg/git" "github.com/lunarway/shuttle/pkg/ui" - "gopkg.in/yaml.v2" + "gopkg.in/yaml.v3" ) // ShuttlePlanScript is a ShuttlePlan sub-element diff --git a/pkg/sdk/context.go b/pkg/sdk/context.go index 070f840..52c262a 100644 --- a/pkg/sdk/context.go +++ b/pkg/sdk/context.go @@ -6,7 +6,7 @@ import ( "path" "github.com/lunarway/shuttle/pkg/config" - "gopkg.in/yaml.v2" + "gopkg.in/yaml.v3" ) type ShuttleContext struct { diff --git a/pkg/templates/funcs.go b/pkg/templates/funcs.go index 5ec0054..d4ae7f9 100644 --- a/pkg/templates/funcs.go +++ b/pkg/templates/funcs.go @@ -9,7 +9,7 @@ import ( "text/template" sprig "github.com/Masterminds/sprig/v3" - yaml "gopkg.in/yaml.v2" + yaml "gopkg.in/yaml.v3" ) type KeyValuePair struct { diff --git a/pkg/templates/funcs_test.go b/pkg/templates/funcs_test.go index a7d180c..0581f1d 100644 --- a/pkg/templates/funcs_test.go +++ b/pkg/templates/funcs_test.go @@ -5,7 +5,7 @@ import ( "testing" "github.com/stretchr/testify/assert" - "gopkg.in/yaml.v2" + "gopkg.in/yaml.v3" ) var (