Skip to content

Commit 314d61f

Browse files
authored
chore: replace github.com/ghodss/yaml with sigs.k8s.io/yaml (swaggo#1520)
At the time of making this commit, the package `github.com/ghodss/yaml` is no longer actively maintained. `sigs.k8s.io/yaml` is a permanent fork of `ghodss/yaml` and is actively maintained by Kubernetes SIG. Signed-off-by: Eng Zer Jun <[email protected]>
1 parent ea779b8 commit 314d61f

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ clean:
5555
.PHONY: deps
5656
deps:
5757
$(GOGET) github.com/swaggo/cli
58-
$(GOGET) github.com/ghodss/yaml
58+
$(GOGET) sigs.k8s.io/yaml
5959
$(GOGET) github.com/KyleBanks/depth
6060
$(GOGET) github.com/go-openapi/jsonreference
6161
$(GOGET) github.com/go-openapi/spec

gen/gen.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ import (
1515
"text/template"
1616
"time"
1717

18-
"github.com/ghodss/yaml"
1918
"github.com/go-openapi/spec"
2019
"github.com/swaggo/swag"
20+
"sigs.k8s.io/yaml"
2121
)
2222

2323
var open = os.Open

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ go 1.18
44

55
require (
66
github.com/KyleBanks/depth v1.2.1
7-
github.com/ghodss/yaml v1.0.0
87
github.com/go-openapi/spec v0.20.4
98
github.com/stretchr/testify v1.7.0
109
github.com/urfave/cli/v2 v2.3.0
1110
golang.org/x/tools v0.7.0
11+
sigs.k8s.io/yaml v1.3.0
1212
)
1313

1414
require (

go.sum

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ3
1111
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
1212
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
1313
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
14-
github.com/ghodss/yaml v1.0.0 h1:wQHKEahhL6wmXdzwWG11gIVCkOv05bNOh+Rxn0yngAk=
15-
github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04=
1614
github.com/go-openapi/jsonpointer v0.19.3/go.mod h1:Pl9vOtqEWErmShwVjC8pYs9cog34VGT37dQOVbmoatg=
1715
github.com/go-openapi/jsonpointer v0.19.5 h1:gZr+CIYByUqjcgeLXnQu2gHYQC9o73G2XUeOFYEICuY=
1816
github.com/go-openapi/jsonpointer v0.19.5/go.mod h1:Pl9vOtqEWErmShwVjC8pYs9cog34VGT37dQOVbmoatg=
@@ -76,3 +74,5 @@ gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ=
7674
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
7775
gopkg.in/yaml.v3 v3.0.0-20200615113413-eeeca48fe776 h1:tQIYjPdBoyREyB9XMu+nnTclpTYkz2zFM+lzLJFO4gQ=
7876
gopkg.in/yaml.v3 v3.0.0-20200615113413-eeeca48fe776/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
77+
sigs.k8s.io/yaml v1.3.0 h1:a2VclLzOGrwOHDiV8EfBGhvjHvP46CtW5j6POvhYGGo=
78+
sigs.k8s.io/yaml v1.3.0/go.mod h1:GeOyir5tyXNByN85N/dRIT9es5UQNerPYEKK56eTBm8=

0 commit comments

Comments
 (0)