chore: Migrate from gopkg.in/yaml.v3 to go.yaml.in/yaml/v3 (#1437)

Signed-off-by: weidongkl <weidong@uniontech.com>
This commit is contained in:
wei dong
2025-12-10 17:02:30 +08:00
committed by GitHub
parent 41f28e209a
commit b6eea26df8
3 changed files with 4 additions and 4 deletions

4
go.mod
View File

@@ -11,11 +11,11 @@ require (
github.com/onsi/gomega v1.38.2
github.com/santhosh-tekuri/jsonschema/v6 v6.0.2
github.com/stretchr/testify v1.11.1
go.yaml.in/yaml/v3 v3.0.4
golang.org/x/crypto v0.45.0
golang.org/x/text v0.31.0
golang.org/x/tools v0.39.0
google.golang.org/genai v1.37.0
gopkg.in/yaml.v3 v3.0.1
)
require (
@@ -46,7 +46,6 @@ require (
go.opentelemetry.io/otel v1.37.0 // indirect
go.opentelemetry.io/otel/metric v1.37.0 // indirect
go.opentelemetry.io/otel/trace v1.37.0 // indirect
go.yaml.in/yaml/v3 v3.0.4 // indirect
golang.org/x/mod v0.30.0 // indirect
golang.org/x/net v0.47.0 // indirect
golang.org/x/sync v0.18.0 // indirect
@@ -54,6 +53,7 @@ require (
google.golang.org/genproto/googleapis/rpc v0.0.0-20250818200422-3122310a409c // indirect
google.golang.org/grpc v1.75.0 // indirect
google.golang.org/protobuf v1.36.8 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
go 1.24.0

View File

@@ -8,7 +8,7 @@ import (
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"gopkg.in/yaml.v3"
"go.yaml.in/yaml/v3"
"github.com/securego/gosec/v2"
"github.com/securego/gosec/v2/cwe"

View File

@@ -3,7 +3,7 @@ package yaml
import (
"io"
"gopkg.in/yaml.v3"
"go.yaml.in/yaml/v3"
"github.com/securego/gosec/v2"
)