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 725d9b8..3bb1b89 100644 --- a/go.mod +++ b/go.mod @@ -14,7 +14,7 @@ require ( github.com/spf13/cobra v1.8.0 github.com/stretchr/testify v1.9.0 golang.org/x/exp v0.0.0-20240604190554-fc45aab8b7f8 - gopkg.in/yaml.v3 v3.0.1 // indirect + gopkg.in/yaml.v3 v3.0.1 ) require ( @@ -26,7 +26,7 @@ require ( github.com/otiai10/copy v1.14.0 golang.org/x/mod v0.18.0 golang.org/x/sync v0.7.0 - gopkg.in/yaml.v2 v2.4.0 + ) require ( diff --git a/pkg/config/shuttleconfig.go b/pkg/config/shuttleconfig.go index 153251b..0744214 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 (