Skip to content

Make up-to-date resolution work when only "generates" is given #187

@sheerun

Description

@sheerun

I'd like to create task that generates one file but doesn't have any sources. I'd expect that task runs only when generated file doesn't exist but it doesn't seem to be the case:

version: '2'

tasks:
  test:
    cmds:
      - echo ok
      - touch test.txt
    generates:
      - test.txt

The task above runs every time even after test.txt is created

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions