We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ae9c24 commit b552cc2Copy full SHA for b552cc2
taskfile.go
@@ -36,7 +36,7 @@ func (e *Executor) ReadTaskfile() error {
36
37
func (e *Executor) readTaskfileData(path string) (tasks map[string]*Task, err error) {
38
if b, err := ioutil.ReadFile(path + ".yml"); err == nil {
39
- return tasks, yaml.Unmarshal(b, &tasks)
+ return tasks, yaml.UnmarshalStrict(b, &tasks)
40
}
41
return nil, taskFileNotFound{path}
42
@@ -45,7 +45,7 @@ func (e *Executor) readTaskvars() error {
45
file := filepath.Join(e.Dir, TaskvarsFilePath)
46
47
if b, err := ioutil.ReadFile(file + ".yml"); err == nil {
48
- if err := yaml.Unmarshal(b, &e.taskvars); err != nil {
+ if err := yaml.UnmarshalStrict(b, &e.taskvars); err != nil {
49
return err
50
51
0 commit comments