fix: pin yaml package to v3 for now (#2693)

This commit is contained in:
Andrey Nering
2026-02-17 15:29:51 -03:00
committed by GitHub
parent 44a2f2e5f5
commit fc5f6fa3aa
25 changed files with 28 additions and 28 deletions

View File

@@ -8,7 +8,7 @@ import (
"strings"
"github.com/fatih/color"
"go.yaml.in/yaml/v4"
"go.yaml.in/yaml/v3"
)
type (
@@ -50,10 +50,10 @@ func (err *TaskfileDecodeError) Error() string {
if len(te.Errors) > 1 {
fmt.Fprintln(buf, color.RedString("errs:"))
for _, message := range te.Errors {
fmt.Fprintln(buf, color.RedString("- %s", message.Err.Error()))
fmt.Fprintln(buf, color.RedString("- %s", message))
}
} else {
fmt.Fprintln(buf, color.RedString("err: %s", te.Errors[0].Err.Error()))
fmt.Fprintln(buf, color.RedString("err: %s", te.Errors[0]))
}
} else {
// Otherwise print the error message normally