1
0
mirror of https://github.com/go-task/task.git synced 2025-03-19 21:17:46 +02:00

Add dist fallbacks to defaultTaskfiles

This commit is contained in:
tylermmorton 2022-01-29 11:53:36 -05:00
parent 086d13ca2f
commit 248952bc8f

View File

@ -20,7 +20,7 @@ var (
// ErrIncludedTaskfilesCantHaveDotenvs is returned when a included Taskfile contains dotenvs // ErrIncludedTaskfilesCantHaveDotenvs is returned when a included Taskfile contains dotenvs
ErrIncludedTaskfilesCantHaveDotenvs = errors.New("task: Included Taskfiles can't have dotenv declarations. Please, move the dotenv declaration to the main Taskfile") ErrIncludedTaskfilesCantHaveDotenvs = errors.New("task: Included Taskfiles can't have dotenv declarations. Please, move the dotenv declaration to the main Taskfile")
defaultTaskfiles = []string{"Taskfile.yml", "Taskfile.yaml"} defaultTaskfiles = []string{"Taskfile.yml", "Taskfile.yaml", "Taskfile.dist.yml", "Taskfile.dist.yaml"}
) )
// Taskfile reads a Taskfile for a given directory // Taskfile reads a Taskfile for a given directory