Skip to content

Commit

Permalink
switch from go-yaml v2 to v3
Browse files Browse the repository at this point in the history
  • Loading branch information
reddec committed May 27, 2022
1 parent 451526e commit 65c131f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion cmd/layout/commands/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
"os"
"path/filepath"

"gopkg.in/yaml.v2"
"gopkg.in/yaml.v3"
)

type Config struct {
Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ require (
github.com/go-git/go-git/v5 v5.4.2
github.com/jessevdk/go-flags v1.5.0
github.com/stretchr/testify v1.7.0
gopkg.in/yaml.v2 v2.4.0
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c
mvdan.cc/sh/v3 v3.4.3
)

Expand Down Expand Up @@ -48,5 +48,5 @@ require (
golang.org/x/term v0.0.0-20210916214954-140adaaadfaf // indirect
golang.org/x/text v0.3.6 // indirect
gopkg.in/warnings.v0 v0.1.2 // indirect
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
)
2 changes: 1 addition & 1 deletion internal/manifest.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import (

"github.com/Masterminds/semver"
"github.com/davecgh/go-spew/spew"
"gopkg.in/yaml.v2"
"gopkg.in/yaml.v3"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion internal/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import (
"github.com/reddec/layout/internal/ui"

"github.com/d5/tengo/v2"
"gopkg.in/yaml.v2"
"gopkg.in/yaml.v3"
)

// Ask questions to user and generate state. Base file initially equal to manifest file and used to resolve relative includes.
Expand Down

0 comments on commit 65c131f

Please sign in to comment.