Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(deps): update module gopkg.in/yaml.v2 to v3 #182

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion cmd/get.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand All @@ -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 (
Expand Down
2 changes: 1 addition & 1 deletion pkg/config/shuttleconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

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
Expand Down Expand Up @@ -108,7 +108,7 @@
defer file.Close()

decoder := yaml.NewDecoder(file)
decoder.SetStrict(true)

Check failure on line 111 in pkg/config/shuttleconfig.go

View workflow job for this annotation

GitHub Actions / build

decoder.SetStrict undefined (type *yaml.Decoder has no field or method SetStrict)
err = decoder.Decode(c)
if err != nil {
return "", shuttleerrors.NewExitCode(
Expand Down
2 changes: 1 addition & 1 deletion pkg/config/shuttleplan.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"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
Expand Down Expand Up @@ -81,7 +81,7 @@
defer file.Close()

decoder := yaml.NewDecoder(file)
decoder.SetStrict(true)

Check failure on line 84 in pkg/config/shuttleplan.go

View workflow job for this annotation

GitHub Actions / build

decoder.SetStrict undefined (type *yaml.Decoder has no field or method SetStrict)
err = decoder.Decode(p)
if err != nil {
return p, errors.NewExitCode(
Expand Down
2 changes: 1 addition & 1 deletion pkg/sdk/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"path"

"github.com/lunarway/shuttle/pkg/config"
"gopkg.in/yaml.v2"
"gopkg.in/yaml.v3"
)

type ShuttleContext struct {
Expand Down
2 changes: 1 addition & 1 deletion pkg/templates/funcs.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion pkg/templates/funcs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"testing"

"github.com/stretchr/testify/assert"
"gopkg.in/yaml.v2"
"gopkg.in/yaml.v3"
)

var (
Expand Down