Skip to content

Commit

Permalink
fix(yaml): improved messaging
Browse files Browse the repository at this point in the history
  • Loading branch information
wass3rw3rk committed Jan 15, 2025
1 parent 3997d68 commit 732c84d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/yaml.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion internal/yaml_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 732c84d

Please sign in to comment.