Skip to content

Commit fc5f6fa

Browse files
authored
fix: pin yaml package to v3 for now (#2693)
1 parent 44a2f2e commit fc5f6fa

25 files changed

Lines changed: 28 additions & 28 deletions

errors/error_taskfile_decode.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"strings"
99

1010
"github.com/fatih/color"
11-
"go.yaml.in/yaml/v4"
11+
"go.yaml.in/yaml/v3"
1212
)
1313

1414
type (
@@ -50,10 +50,10 @@ func (err *TaskfileDecodeError) Error() string {
5050
if len(te.Errors) > 1 {
5151
fmt.Fprintln(buf, color.RedString("errs:"))
5252
for _, message := range te.Errors {
53-
fmt.Fprintln(buf, color.RedString("- %s", message.Err.Error()))
53+
fmt.Fprintln(buf, color.RedString("- %s", message))
5454
}
5555
} else {
56-
fmt.Fprintln(buf, color.RedString("err: %s", te.Errors[0].Err.Error()))
56+
fmt.Fprintln(buf, color.RedString("err: %s", te.Errors[0]))
5757
}
5858
} else {
5959
// Otherwise print the error message normally

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ require (
2929
github.com/spf13/pflag v1.0.10
3030
github.com/stretchr/testify v1.11.1
3131
github.com/zeebo/xxh3 v1.0.2
32-
go.yaml.in/yaml/v4 v4.0.0-rc.3
32+
go.yaml.in/yaml/v3 v3.0.4
3333
golang.org/x/sync v0.19.0
3434
golang.org/x/term v0.39.0
3535
mvdan.cc/sh/moreinterp v0.0.0-20260120230322-19def062a997

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -274,8 +274,8 @@ go.opentelemetry.io/otel/sdk/metric v1.39.0 h1:cXMVVFVgsIf2YL6QkRF4Urbr/aMInf+2W
274274
go.opentelemetry.io/otel/sdk/metric v1.39.0/go.mod h1:xq9HEVH7qeX69/JnwEfp6fVq5wosJsY1mt4lLfYdVew=
275275
go.opentelemetry.io/otel/trace v1.39.0 h1:2d2vfpEDmCJ5zVYz7ijaJdOF59xLomrvj7bjt6/qCJI=
276276
go.opentelemetry.io/otel/trace v1.39.0/go.mod h1:88w4/PnZSazkGzz/w84VHpQafiU4EtqqlVdxWy+rNOA=
277-
go.yaml.in/yaml/v4 v4.0.0-rc.3 h1:3h1fjsh1CTAPjW7q/EMe+C8shx5d8ctzZTrLcs/j8Go=
278-
go.yaml.in/yaml/v4 v4.0.0-rc.3/go.mod h1:aZqd9kCMsGL7AuUv/m/PvWLdg5sjJsZ4oHDEnfPPfY0=
277+
go.yaml.in/yaml/v3 v3.0.4 h1:tfq32ie2Jv2UxXFdLJdh3jXuOzWiL1fo0bu/FbuKpbc=
278+
go.yaml.in/yaml/v3 v3.0.4/go.mod h1:DhzuOOF2ATzADvBadXxruRBLzYTpT36CKvDb3+aBEFg=
279279
golang.org/x/crypto v0.46.0 h1:cKRW/pmt1pKAfetfu+RCEvjvZkA9RimPbh7bhFjGVBU=
280280
golang.org/x/crypto v0.46.0/go.mod h1:Evb/oLKmMraqjZ2iQTwDwvCtJkczlDuTmdJXoZVzqU0=
281281
golang.org/x/exp v0.0.0-20250305212735-054e65f0b394 h1:nDVHiLt8aIbd/VzvPWN6kSOPE7+F/fNFDSXLVYkE/Iw=

internal/templater/funcs.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99

1010
"github.com/davecgh/go-spew/spew"
1111
"github.com/google/uuid"
12-
"go.yaml.in/yaml/v4"
12+
"go.yaml.in/yaml/v3"
1313
"mvdan.cc/sh/v3/shell"
1414
"mvdan.cc/sh/v3/syntax"
1515

taskfile/ast/cmd.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package ast
22

33
import (
4-
"go.yaml.in/yaml/v4"
4+
"go.yaml.in/yaml/v3"
55

66
"github.com/go-task/task/v3/errors"
77
"github.com/go-task/task/v3/internal/deepcopy"

taskfile/ast/defer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package ast
22

33
import (
4-
"go.yaml.in/yaml/v4"
4+
"go.yaml.in/yaml/v3"
55

66
"github.com/go-task/task/v3/errors"
77
)

taskfile/ast/dep.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package ast
22

33
import (
4-
"go.yaml.in/yaml/v4"
4+
"go.yaml.in/yaml/v3"
55

66
"github.com/go-task/task/v3/errors"
77
)

taskfile/ast/for.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package ast
22

33
import (
4-
"go.yaml.in/yaml/v4"
4+
"go.yaml.in/yaml/v3"
55

66
"github.com/go-task/task/v3/errors"
77
"github.com/go-task/task/v3/internal/deepcopy"

taskfile/ast/glob.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package ast
22

33
import (
4-
"go.yaml.in/yaml/v4"
4+
"go.yaml.in/yaml/v3"
55

66
"github.com/go-task/task/v3/errors"
77
)

taskfile/ast/include.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"sync"
66

77
"github.com/elliotchance/orderedmap/v3"
8-
"go.yaml.in/yaml/v4"
8+
"go.yaml.in/yaml/v3"
99

1010
"github.com/go-task/task/v3/errors"
1111
"github.com/go-task/task/v3/internal/deepcopy"

0 commit comments

Comments
 (0)