Skip to content

Commit 7ebc4ea

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

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,13 +34,13 @@ 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"
3837

3938
"sigs.k8s.io/release-sdk/git"
4039
"sigs.k8s.io/release-sdk/github"
4140
"sigs.k8s.io/release-utils/command"
4241
"sigs.k8s.io/release-utils/editor"
4342
"sigs.k8s.io/release-utils/util"
43+
"sigs.k8s.io/yaml"
4444

4545
"k8s.io/release/pkg/notes"
4646
"k8s.io/release/pkg/notes/document"

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,9 +27,9 @@ import (
2727

2828
"cloud.google.com/go/storage"
2929
"github.com/sirupsen/logrus"
30-
"gopkg.in/yaml.v2"
3130

3231
"sigs.k8s.io/release-sdk/object"
32+
"sigs.k8s.io/yaml"
3333

3434
"k8s.io/release/pkg/notes"
3535
)

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+
"sigs.k8s.io/yaml"
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,9 +24,9 @@ import (
2424
"path/filepath"
2525

2626
"github.com/sirupsen/logrus"
27-
"gopkg.in/yaml.v2"
2827

2928
"sigs.k8s.io/release-sdk/object"
29+
yaml "sigs.k8s.io/yaml/goyaml.v2"
3030
)
3131

3232
// MapProvider interface that obtains release notes maps from a source.

0 commit comments

Comments
 (0)