Skip to content
Myr

chore(yaml): upgrade dependency to v3 version (#3456)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

fixes https://github.com/gin-gonic/gin/issues/3451 fixes https://github.com/gin-gonic/gin/issues/3306 fixes https://github.com/gin-gonic/gin/issues/3362 fixes https://github.com/gin-gonic/gin/issues/2581

authored by thinkerou · committed by GitHub · parent 7d8fc15 · Browse files · 5 files+4 added−7 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

5 files+4 added−7 removed

  • other:+4 added−7 removed

5 files+4 added−7 removed

modified:binding/yaml.go+1 added-1 removed
7 unmodified lines
8 "bytes"9 "io"10 "net/http"1112 "gopkg.in/yaml.v2"12 "gopkg.in/yaml.v3"13)1415type yamlBinding struct{}16
19 unmodified lines
modified:render/render_test.go+1 added-1 removed
236 unmodified lines
237 assert.Equal(t, "application/x-yaml; charset=utf-8", w.Header().Get("Content-Type"))238239 err := (YAML{data}).Render(w)240 assert.NoError(t, err)241 assert.Equal(t, "\"\\na : Easy!\\nb:\\n\\tc: 2\\n\\td: [3, 4]\\n\\t\"\n", w.Body.String())241 assert.Equal(t, "|4-\n a : Easy!\n b:\n \tc: 2\n \td: [3, 4]\n \t\n", w.Body.String())242 assert.Equal(t, "application/x-yaml; charset=utf-8", w.Header().Get("Content-Type"))243}244245type fail struct{}
289 unmodified lines
modified:render/yaml.go+1 added-1 removed
5 unmodified lines
67import (8 "net/http"910 "gopkg.in/yaml.v2"10 "gopkg.in/yaml.v3"11)1213// YAML contains the given interface object.14type YAML struct {
22 unmodified lines
modified:go.mod+1 added-2 removed
12 unmodified lines
13 github.com/stretchr/testify v1.8.114 github.com/ugorji/go/codec v1.2.715 golang.org/x/net v0.4.016 google.golang.org/protobuf v1.28.117 gopkg.in/yaml.v2 v2.4.017 gopkg.in/yaml.v3 v3.0.118)1920require (21 github.com/chenzhuoyu/base64x v0.0.0-20221115062448-fe3a3abad311 // indirect
9 unmodified lines
31 golang.org/x/arch v0.0.0-20220412001346-fc48f9fe4c15 // indirect32 golang.org/x/crypto v0.0.0-20211215153901-e495a2d5b3d3 // indirect33 golang.org/x/sys v0.3.0 // indirect34 golang.org/x/text v0.5.0 // indirect35 gopkg.in/yaml.v3 v3.0.1 // indirect35)
modified:go.sum-2 removed
97 unmodified lines
98gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=99gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk=100gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q=101gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI=102gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY=103gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ=102gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=103gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=104gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=105gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
1 unmodified line