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 #1293

Open
wants to merge 1 commit into
base: main
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cmd/oapi-codegen/oapi-codegen.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"runtime/debug"
"strings"

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

"github.com/deepmap/oapi-codegen/v2/pkg/codegen"
"github.com/deepmap/oapi-codegen/v2/pkg/util"
Expand Down Expand Up @@ -155,10 +155,10 @@
errExit("error reading config file '%s': %v\n", flagConfigFile, err)
}
var oldConfig oldConfiguration
oldErr := yaml.UnmarshalStrict(configFile, &oldConfig)

Check failure on line 158 in cmd/oapi-codegen/oapi-codegen.go

View workflow job for this annotation

GitHub Actions / Build (1.21)

undefined: yaml.UnmarshalStrict

Check failure on line 158 in cmd/oapi-codegen/oapi-codegen.go

View workflow job for this annotation

GitHub Actions / Build (1.22)

undefined: yaml.UnmarshalStrict

Check failure on line 158 in cmd/oapi-codegen/oapi-codegen.go

View workflow job for this annotation

GitHub Actions / Build (1.20)

undefined: yaml.UnmarshalStrict

Check failure on line 158 in cmd/oapi-codegen/oapi-codegen.go

View workflow job for this annotation

GitHub Actions / Build (1.22)

undefined: yaml.UnmarshalStrict

Check failure on line 158 in cmd/oapi-codegen/oapi-codegen.go

View workflow job for this annotation

GitHub Actions / Build (1.21)

undefined: yaml.UnmarshalStrict

Check failure on line 158 in cmd/oapi-codegen/oapi-codegen.go

View workflow job for this annotation

GitHub Actions / Build (1.21)

undefined: yaml.UnmarshalStrict

Check failure on line 158 in cmd/oapi-codegen/oapi-codegen.go

View workflow job for this annotation

GitHub Actions / Build (1.22)

undefined: yaml.UnmarshalStrict

Check failure on line 158 in cmd/oapi-codegen/oapi-codegen.go

View workflow job for this annotation

GitHub Actions / Build (1.20)

undefined: yaml.UnmarshalStrict

Check failure on line 158 in cmd/oapi-codegen/oapi-codegen.go

View workflow job for this annotation

GitHub Actions / Build (1.20)

undefined: yaml.UnmarshalStrict

Check failure on line 158 in cmd/oapi-codegen/oapi-codegen.go

View workflow job for this annotation

GitHub Actions / Build (1.21)

undefined: yaml.UnmarshalStrict

Check failure on line 158 in cmd/oapi-codegen/oapi-codegen.go

View workflow job for this annotation

GitHub Actions / Build (1.20)

undefined: yaml.UnmarshalStrict

Check failure on line 158 in cmd/oapi-codegen/oapi-codegen.go

View workflow job for this annotation

GitHub Actions / Build (1.22)

undefined: yaml.UnmarshalStrict

var newConfig configuration
newErr := yaml.UnmarshalStrict(configFile, &newConfig)

Check failure on line 161 in cmd/oapi-codegen/oapi-codegen.go

View workflow job for this annotation

GitHub Actions / Build (1.21)

undefined: yaml.UnmarshalStrict

Check failure on line 161 in cmd/oapi-codegen/oapi-codegen.go

View workflow job for this annotation

GitHub Actions / Build (1.22)

undefined: yaml.UnmarshalStrict (typecheck)

Check failure on line 161 in cmd/oapi-codegen/oapi-codegen.go

View workflow job for this annotation

GitHub Actions / Build (1.20)

undefined: yaml.UnmarshalStrict

Check failure on line 161 in cmd/oapi-codegen/oapi-codegen.go

View workflow job for this annotation

GitHub Actions / Build (1.22)

undefined: yaml.UnmarshalStrict

Check failure on line 161 in cmd/oapi-codegen/oapi-codegen.go

View workflow job for this annotation

GitHub Actions / Build (1.21)

undefined: yaml.UnmarshalStrict

Check failure on line 161 in cmd/oapi-codegen/oapi-codegen.go

View workflow job for this annotation

GitHub Actions / Build (1.21)

undefined: yaml.UnmarshalStrict (typecheck)

Check failure on line 161 in cmd/oapi-codegen/oapi-codegen.go

View workflow job for this annotation

GitHub Actions / Build (1.22)

undefined: yaml.UnmarshalStrict (typecheck)

Check failure on line 161 in cmd/oapi-codegen/oapi-codegen.go

View workflow job for this annotation

GitHub Actions / Build (1.20)

undefined: yaml.UnmarshalStrict (typecheck)

Check failure on line 161 in cmd/oapi-codegen/oapi-codegen.go

View workflow job for this annotation

GitHub Actions / Build (1.20)

undefined: yaml.UnmarshalStrict (typecheck)

Check failure on line 161 in cmd/oapi-codegen/oapi-codegen.go

View workflow job for this annotation

GitHub Actions / Build (1.21)

undefined: yaml.UnmarshalStrict (typecheck)

Check failure on line 161 in cmd/oapi-codegen/oapi-codegen.go

View workflow job for this annotation

GitHub Actions / Build (1.20)

undefined: yaml.UnmarshalStrict

Check failure on line 161 in cmd/oapi-codegen/oapi-codegen.go

View workflow job for this annotation

GitHub Actions / Build (1.22)

undefined: yaml.UnmarshalStrict

// If one of the two files parses, but the other fails, we know the
// answer.
Expand Down
3 changes: 1 addition & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ require (
github.com/stretchr/testify v1.9.0
golang.org/x/text v0.15.0
golang.org/x/tools v0.21.0
gopkg.in/yaml.v2 v2.4.0
gopkg.in/yaml.v3 v3.0.1
)

require (
Expand All @@ -22,5 +22,4 @@ require (
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/ugorji/go/codec v1.2.11 // indirect
golang.org/x/mod v0.17.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
2 changes: 0 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ golang.org/x/tools v0.21.0 h1:qc0xYgIbsSDt9EyWz05J5wfa7LOVW0YTLOXrqdLAWIw=
golang.org/x/tools v0.21.0/go.mod h1:aiJjzUbINMkxbQROHiO6hDPo2LHcIPhhQsa9DLh0yGk=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk=
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.0/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
Loading