From d24fd37532014dec13b59f72700929da7db3f026 Mon Sep 17 00:00:00 2001 From: David May <49894298+wass3rw3rk@users.noreply.github.com> Date: Wed, 15 Jan 2025 13:57:58 -0600 Subject: [PATCH] fix(yaml): improved messaging (#1243) --- internal/yaml.go | 2 +- internal/yaml_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/yaml.go b/internal/yaml.go index 34add6d9d..b45cc4983 100644 --- a/internal/yaml.go +++ b/internal/yaml.go @@ -53,7 +53,7 @@ func ParseYAML(data []byte) (*types.Build, []string, error) { config = legacyConfig.ToYAML() - warnings = append(warnings, "using legacy version. Upgrade to go-yaml v3") + warnings = append(warnings, `using legacy version - address any incompatibilities and use "1" instead`) default: // unmarshal the bytes into the yaml configuration diff --git a/internal/yaml_test.go b/internal/yaml_test.go index e91ccaa21..fbf441439 100644 --- a/internal/yaml_test.go +++ b/internal/yaml_test.go @@ -51,7 +51,7 @@ func TestInternal_ParseYAML(t *testing.T) { name: "buildkite legacy", file: "testdata/buildkite.yml", wantBuild: wantBuild, - wantWarnings: []string{"using legacy version. Upgrade to go-yaml v3"}, + wantWarnings: []string{`using legacy version - address any incompatibilities and use "1" instead`}, }, { name: "anchor collapse",