Skip to content

Commit ff8829a

Browse files
committed
chore: Port to sigs.k8s.io/yaml
1 parent 5784758 commit ff8829a

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

cmd/krel/cmd/release_notes.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ import (
3434
gogit "github.com/go-git/go-git/v5"
3535
"github.com/sirupsen/logrus"
3636
"github.com/spf13/cobra"
37-
"gopkg.in/yaml.v2"
37+
yaml "sigs.k8s.io/yaml/goyaml.v2"
3838

3939
"sigs.k8s.io/release-sdk/git"
4040
"sigs.k8s.io/release-sdk/github"

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ require (
3838
golang.org/x/oauth2 v0.29.0
3939
golang.org/x/text v0.24.0
4040
google.golang.org/api v0.221.0
41-
gopkg.in/yaml.v2 v2.4.0
4241
k8s.io/apimachinery v0.32.3
4342
k8s.io/utils v0.0.0-20241104100929-3ea5e8cea738
4443
sigs.k8s.io/bom v0.6.0
@@ -311,6 +310,7 @@ require (
311310
gopkg.in/inf.v0 v0.9.1 // indirect
312311
gopkg.in/ini.v1 v1.67.0 // indirect
313312
gopkg.in/warnings.v0 v0.1.2 // indirect
313+
gopkg.in/yaml.v2 v2.4.0 // indirect
314314
gopkg.in/yaml.v3 v3.0.1 // indirect
315315
k8s.io/api v0.28.4 // indirect
316316
k8s.io/client-go v0.28.4 // indirect

pkg/cve/impl.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import (
2727

2828
"cloud.google.com/go/storage"
2929
"github.com/sirupsen/logrus"
30-
"gopkg.in/yaml.v2"
30+
yaml "sigs.k8s.io/yaml/goyaml.v3"
3131

3232
"sigs.k8s.io/release-sdk/object"
3333

pkg/notes/notes.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ import (
4141
"github.com/sirupsen/logrus"
4242
"golang.org/x/text/cases"
4343
"golang.org/x/text/language"
44-
"gopkg.in/yaml.v2"
4544

4645
"sigs.k8s.io/release-sdk/github"
46+
yaml "sigs.k8s.io/yaml/goyaml.v3"
4747

4848
"k8s.io/release/pkg/notes/options"
4949
)

pkg/notes/notes_map.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import (
2424
"path/filepath"
2525

2626
"github.com/sirupsen/logrus"
27-
"gopkg.in/yaml.v2"
27+
yaml "sigs.k8s.io/yaml/goyaml.v3"
2828

2929
"sigs.k8s.io/release-sdk/object"
3030
)

0 commit comments

Comments
 (0)