Skip to content

Commit 115b4a3

Browse files
committed
YAML: Don't use strict unmarshaling anymore
Fixes #112
1 parent 62ba8db commit 115b4a3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

taskfile.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ func (e *Executor) readTaskfile() error {
4444
func (e *Executor) readTaskfileData(path string) (*taskfile.Taskfile, error) {
4545
if b, err := ioutil.ReadFile(path + ".yml"); err == nil {
4646
var taskfile taskfile.Taskfile
47-
return &taskfile, yaml.UnmarshalStrict(b, &taskfile)
47+
return &taskfile, yaml.Unmarshal(b, &taskfile)
4848
}
4949
return nil, taskFileNotFound{path}
5050
}
@@ -56,14 +56,14 @@ func (e *Executor) readTaskvars() error {
5656
)
5757

5858
if b, err := ioutil.ReadFile(file + ".yml"); err == nil {
59-
if err := yaml.UnmarshalStrict(b, &e.taskvars); err != nil {
59+
if err := yaml.Unmarshal(b, &e.taskvars); err != nil {
6060
return err
6161
}
6262
}
6363

6464
if b, err := ioutil.ReadFile(osSpecificFile + ".yml"); err == nil {
6565
osTaskvars := make(taskfile.Vars, 10)
66-
if err := yaml.UnmarshalStrict(b, &osTaskvars); err != nil {
66+
if err := yaml.Unmarshal(b, &osTaskvars); err != nil {
6767
return err
6868
}
6969
for k, v := range osTaskvars {

0 commit comments

Comments
 (0)