1
0
mirror of https://github.com/go-task/task.git synced 2025-11-25 22:32:55 +02:00

feat: version checks

This commit is contained in:
Pete Davison
2024-01-11 22:30:02 +00:00
committed by Andrey Nering
parent 8c0236c795
commit e2b85c6aa1
5 changed files with 47 additions and 42 deletions

View File

@@ -45,7 +45,7 @@ func Read(
// Check that the Taskfile is set and has a schema version
if t == nil || t.Version == nil {
return nil, &errors.TaskfileVersionNotDefined{URI: node.Location()}
return nil, &errors.TaskfileVersionCheckError{URI: node.Location()}
}
// Annotate any included Taskfile reference with a base directory for resolving relative paths