From 41af89f425f77c408bbdb7f112ecb32905994b25 Mon Sep 17 00:00:00 2001 From: Michael Adler Date: Mon, 23 Oct 2023 15:37:03 +0200 Subject: [PATCH] chore: Unify YAML parsing with yaml.v3 throughout the project - Replaced instances of yaml.v2 - Adopted yaml.v3 consistently to simplify maintenance and ensure consistent (parsing) behavior Signed-off-by: Michael Adler --- cmd/wfxctl/cmd/workflow/validate/validate.go | 2 +- go.mod | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/wfxctl/cmd/workflow/validate/validate.go b/cmd/wfxctl/cmd/workflow/validate/validate.go index 3ac39004..40d9ded7 100644 --- a/cmd/wfxctl/cmd/workflow/validate/validate.go +++ b/cmd/wfxctl/cmd/workflow/validate/validate.go @@ -17,7 +17,7 @@ import ( "github.com/Southclaws/fault" "github.com/rs/zerolog/log" "github.com/spf13/cobra" - "gopkg.in/yaml.v2" + "gopkg.in/yaml.v3" "github.com/siemens/wfx/generated/model" "github.com/siemens/wfx/workflow" diff --git a/go.mod b/go.mod index e104b865..9fd952b5 100644 --- a/go.mod +++ b/go.mod @@ -42,7 +42,6 @@ require ( go.uber.org/goleak v1.2.1 golang.org/x/term v0.13.0 gopkg.in/go-playground/colors.v1 v1.2.0 - gopkg.in/yaml.v2 v2.4.0 gopkg.in/yaml.v3 v3.0.1 ) @@ -106,4 +105,5 @@ require ( golang.org/x/net v0.17.0 // indirect golang.org/x/sync v0.3.0 // indirect golang.org/x/sys v0.13.0 // indirect + gopkg.in/yaml.v2 v2.4.0 // indirect )