diff --git a/go.mod b/go.mod index 26e32939..23ae138f 100644 --- a/go.mod +++ b/go.mod @@ -9,7 +9,7 @@ require ( github.com/spf13/pflag v1.0.3 github.com/stretchr/testify v1.4.0 golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e - gopkg.in/yaml.v2 v2.2.2 + gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c mvdan.cc/sh/v3 v3.0.2 ) diff --git a/go.sum b/go.sum index 1c067477..e56701b9 100644 --- a/go.sum +++ b/go.sum @@ -52,6 +52,8 @@ gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8 gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI= gopkg.in/yaml.v2 v2.2.2 h1:ZCJp+EgiOT7lHqUV2J862kp8Qj64Jo6az82+3Td9dZw= gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo= +gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= mvdan.cc/editorconfig v0.1.1-0.20191109213504-890940e3f00e/go.mod h1:Ge4atmRUYqueGppvJ7JNrtqpqokoJEFxYbP0Z+WeKS8= mvdan.cc/sh/v3 v3.0.2 h1:NU+UpTZHRdIZ9igRo8zi/7+5/NpetYlhlyDhz1/AdMM= mvdan.cc/sh/v3 v3.0.2/go.mod h1:rBIndNJFYPp8xSppiZcGIk6B5d1g3OEARxEaXjPxwVI= diff --git a/internal/taskfile/precondition_test.go b/internal/taskfile/precondition_test.go index 799e9ac4..dd202bd0 100644 --- a/internal/taskfile/precondition_test.go +++ b/internal/taskfile/precondition_test.go @@ -6,7 +6,7 @@ import ( "github.com/go-task/task/v2/internal/taskfile" "github.com/stretchr/testify/assert" - "gopkg.in/yaml.v2" + "gopkg.in/yaml.v3" ) func TestPreconditionParse(t *testing.T) { diff --git a/internal/taskfile/read/taskfile.go b/internal/taskfile/read/taskfile.go index 7b1db509..5ee7e4e5 100644 --- a/internal/taskfile/read/taskfile.go +++ b/internal/taskfile/read/taskfile.go @@ -9,7 +9,7 @@ import ( "github.com/go-task/task/v2/internal/taskfile" - "gopkg.in/yaml.v2" + "gopkg.in/yaml.v3" ) var ( diff --git a/internal/taskfile/read/taskvars.go b/internal/taskfile/read/taskvars.go index b2022140..f664cf04 100644 --- a/internal/taskfile/read/taskvars.go +++ b/internal/taskfile/read/taskvars.go @@ -8,7 +8,7 @@ import ( "github.com/go-task/task/v2/internal/taskfile" - "gopkg.in/yaml.v2" + "gopkg.in/yaml.v3" ) // Taskvars reads a Taskvars for a given directory diff --git a/internal/taskfile/taskfile_test.go b/internal/taskfile/taskfile_test.go index 0fed779d..9b229a07 100644 --- a/internal/taskfile/taskfile_test.go +++ b/internal/taskfile/taskfile_test.go @@ -6,7 +6,7 @@ import ( "github.com/go-task/task/v2/internal/taskfile" "github.com/stretchr/testify/assert" - "gopkg.in/yaml.v2" + "gopkg.in/yaml.v3" ) func TestCmdParse(t *testing.T) {