Skip to content

Unhelpful error with bad include #2441

@maxmzkrcensys

Description

@maxmzkrcensys

Description

When you have a taskfile that includes a directory that exists, but no taskfile exists in the directory, you get the error

file does not exist

Before c5afffb, the error was

task: No Taskfile found at "/empty/directory"

The extra context was helpful in debugging issues with taskfiles

Version

3.45.4

Operating system

ubuntu

Experiments Enabled

No response

Example Taskfile

version: '3'

includes:
  empty: ./empty_dir

tasks:
  default:
    cmds:
      - echo "This task should not run due to empty directory"

Metadata

Metadata

Assignees

No one assigned

    Labels

    state: needs triageWaiting to be triaged by a maintainer.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions