Skip to content

Commit aa017e6

Browse files
supakeenachilleas-k
authored andcommitted
deps: switch yaml libraries
During a recent chat it was brought up that `go.pkg.in/yaml.v3` is unmaintained. The YAML organization forked the unmaintained package and is now updating it. The `v3` we use here only receives security fixes while `v4` will eventually support new features and more of YAML. Let's do the easy an uncontroversial swap first as this is a maintained drop-in replacement. Signed-off-by: Simon de Vlieger <[email protected]>
1 parent 1fa3c4a commit aa017e6

File tree

20 files changed

+22
-19
lines changed

20 files changed

+22
-19
lines changed

cmd/gen-manifests/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import (
1919
"time"
2020

2121
"github.com/gobwas/glob"
22-
"gopkg.in/yaml.v3"
22+
"go.yaml.in/yaml/v3"
2323

2424
"github.com/osbuild/blueprint/pkg/blueprint"
2525
"github.com/osbuild/images/internal/buildconfig"

go.mod

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,13 @@ require (
4040
github.com/stretchr/testify v1.11.1
4141
github.com/ubccr/kerby v0.0.0-20230802201021-412be7bfaee5
4242
github.com/vmware/govmomi v0.52.0
43+
go.yaml.in/yaml/v3 v3.0.3
4344
golang.org/x/exp v0.0.0-20250103183323-7d7fa50e5329
4445
golang.org/x/oauth2 v0.30.0
4546
golang.org/x/sys v0.35.0
4647
golang.org/x/tools v0.36.0
4748
google.golang.org/api v0.248.0
4849
gopkg.in/ini.v1 v1.67.0
49-
gopkg.in/yaml.v3 v3.0.1
5050
libvirt.org/go/libvirt v1.11006.0
5151
)
5252

@@ -200,5 +200,6 @@ require (
200200
google.golang.org/genproto/googleapis/rpc v0.0.0-20250818200422-3122310a409c // indirect
201201
google.golang.org/grpc v1.74.2 // indirect
202202
google.golang.org/protobuf v1.36.7 // indirect
203+
gopkg.in/yaml.v3 v3.0.1 // indirect
203204
sigs.k8s.io/yaml v1.5.0 // indirect
204205
)

go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -501,6 +501,8 @@ go.opentelemetry.io/proto/otlp v1.3.1 h1:TrMUixzpM0yuc/znrFTP9MMRh8trP93mkCiDVeX
501501
go.opentelemetry.io/proto/otlp v1.3.1/go.mod h1:0X1WI4de4ZsLrrJNLAQbFeLCm3T7yBkR0XqQ7niQU+8=
502502
go.yaml.in/yaml/v2 v2.4.2 h1:DzmwEr2rDGHl7lsFgAHxmNz/1NlQ7xLIrlN2h5d1eGI=
503503
go.yaml.in/yaml/v2 v2.4.2/go.mod h1:081UH+NErpNdqlCXm3TtEran0rJZGxAYx9hb/ELlsPU=
504+
go.yaml.in/yaml/v3 v3.0.3 h1:bXOww4E/J3f66rav3pX3m8w6jDE4knZjGOw8b5Y6iNE=
505+
go.yaml.in/yaml/v3 v3.0.3/go.mod h1:tBHosrYAkRZjRAOREWbDnBXUf08JOwYq++0QNwQiWzI=
504506
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
505507
golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
506508
golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=

internal/environment/environment_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"testing"
55

66
"github.com/stretchr/testify/assert"
7-
"gopkg.in/yaml.v3"
7+
"go.yaml.in/yaml/v3"
88

99
"github.com/osbuild/images/internal/environment"
1010
"github.com/osbuild/images/pkg/rpmmd"

pkg/arch/arch_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"testing"
55

66
"github.com/stretchr/testify/assert"
7-
"gopkg.in/yaml.v3"
7+
"go.yaml.in/yaml/v3"
88

99
"github.com/osbuild/images/internal/common"
1010
)

pkg/bib/osinfo/osinfo.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"strings"
1010

1111
"github.com/sirupsen/logrus"
12-
"gopkg.in/yaml.v3"
12+
"go.yaml.in/yaml/v3"
1313

1414
"github.com/osbuild/blueprint/pkg/blueprint"
1515
"github.com/osbuild/images/pkg/bib/blueprintload"

pkg/customizations/fsnode/fsnode_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"testing"
77

88
"github.com/stretchr/testify/assert"
9-
"gopkg.in/yaml.v3"
9+
"go.yaml.in/yaml/v3"
1010

1111
"github.com/osbuild/images/internal/common"
1212
)

pkg/datasizes/size_test.go

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

77
"github.com/BurntSushi/toml"
88
"github.com/stretchr/testify/assert"
9-
"gopkg.in/yaml.v3"
9+
"go.yaml.in/yaml/v3"
1010

1111
"github.com/osbuild/images/pkg/datasizes"
1212
)

pkg/disk/enums_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"testing"
77

88
"github.com/stretchr/testify/assert"
9-
"gopkg.in/yaml.v3"
9+
"go.yaml.in/yaml/v3"
1010

1111
"github.com/osbuild/images/pkg/disk"
1212
)

pkg/disk/partition_table_yaml_test.go

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

66
"github.com/stretchr/testify/assert"
77
"github.com/stretchr/testify/require"
8-
"gopkg.in/yaml.v3"
8+
"go.yaml.in/yaml/v3"
99

1010
"github.com/osbuild/images/pkg/datasizes"
1111
"github.com/osbuild/images/pkg/disk"

0 commit comments

Comments
 (0)