Skip to content

Commit e7555e3

Browse files
bupdgorkem
authored andcommitted
feat: migrate to go.yaml.in/yaml/v4
Signed-off-by: bupd <bupdprasanth@gmail.com>
1 parent 6bdae08 commit e7555e3

6 files changed

Lines changed: 8 additions & 5 deletions

File tree

go.mod

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ require (
1111
github.com/spf13/cobra v1.10.1
1212
github.com/stretchr/testify v1.11.1
1313
github.com/vbauerster/mpb/v8 v8.11.2
14+
go.yaml.in/yaml/v4 v4.0.0-rc.3
1415
golang.org/x/mod v0.30.0
1516
golang.org/x/sync v0.18.0
1617
golang.org/x/sys v0.38.0
1718
golang.org/x/term v0.37.0
1819
golang.org/x/text v0.31.0
19-
gopkg.in/yaml.v3 v3.0.1
2020
oras.land/oras-go/v2 v2.6.0
2121
)
2222

@@ -32,4 +32,5 @@ require (
3232
github.com/pmezard/go-difflib v1.0.0 // indirect
3333
github.com/russross/blackfriday/v2 v2.1.0 // indirect
3434
github.com/spf13/pflag v1.0.9 // indirect
35+
gopkg.in/yaml.v3 v3.0.1 // indirect
3536
)

go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ github.com/stretchr/testify v1.11.1 h1:7s2iGBzp5EwR7/aIZr8ao5+dra3wiQyKjjFuvgVKu
3636
github.com/stretchr/testify v1.11.1/go.mod h1:wZwfW3scLgRK+23gO65QZefKpKQRnfz6sD981Nm4B6U=
3737
github.com/vbauerster/mpb/v8 v8.11.2 h1:OqLoHznUVU7SKS/WV+1dB5/hm20YLheYupiHhL5+M1Y=
3838
github.com/vbauerster/mpb/v8 v8.11.2/go.mod h1:mEB/M353al1a7wMUNtiymmPsEkGlJgeJmtlbY5adCJ8=
39+
go.yaml.in/yaml/v4 v4.0.0-rc.3 h1:3h1fjsh1CTAPjW7q/EMe+C8shx5d8ctzZTrLcs/j8Go=
40+
go.yaml.in/yaml/v4 v4.0.0-rc.3/go.mod h1:aZqd9kCMsGL7AuUv/m/PvWLdg5sjJsZ4oHDEnfPPfY0=
3941
golang.org/x/mod v0.30.0 h1:fDEXFVZ/fmCKProc/yAXXUijritrDzahmwwefnjoPFk=
4042
golang.org/x/mod v0.30.0/go.mod h1:lAsf5O2EvJeSFMiBxXDki7sCgAxEUcZHXoXMKT4GJKc=
4143
golang.org/x/sync v0.18.0 h1:kr88TuHDroi+UVf+0hZnirlk8o8T+4MrK6mr60WkH/I=

pkg/artifact/kitfile.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import (
2525

2626
modelspecv1 "github.com/modelpack/model-spec/specs-go/v1"
2727
"github.com/opencontainers/go-digest"
28-
"gopkg.in/yaml.v3"
28+
"go.yaml.in/yaml/v4"
2929
)
3030

3131
type (

pkg/artifact/kitfile_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import (
2525
"testing"
2626

2727
"github.com/stretchr/testify/assert"
28-
"gopkg.in/yaml.v3"
28+
"go.yaml.in/yaml/v4"
2929
)
3030

3131
type parameterTestCase struct {

pkg/cmd/info/cmd.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ import (
3333
"github.com/kitops-ml/kitops/pkg/output"
3434

3535
"github.com/spf13/cobra"
36-
"gopkg.in/yaml.v3"
36+
"go.yaml.in/yaml/v4"
3737
"oras.land/oras-go/v2/errdef"
3838
"oras.land/oras-go/v2/registry"
3939

testing/util_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import (
3030
"github.com/kitops-ml/kitops/pkg/lib/constants"
3131

3232
"github.com/stretchr/testify/assert"
33-
"gopkg.in/yaml.v3"
33+
"go.yaml.in/yaml/v4"
3434
)
3535

3636
const modelKitTag = "test:test"

0 commit comments

Comments
 (0)