task icon indicating copy to clipboard operation
task copied to clipboard

method: timestamp does not run when generates: path is missing

Open tyro-jason opened this issue 2 years ago • 1 comments

my-task:
    desc: does useful things
    cmds:
      - echo "I ran yo"
    sources:
      - [insert some path to source files]
    generates:
      - [insert some path to generated file]
    method: timestamp  
  • Task version: Task version: v3.26.0 (h1:NfYktTh/XXJUFtUFdle+BZFtvGlmhk4Q7YfoeOBLPlE=)
  • Operating system: Darwin
  • Experiments enabled: no

If i add method timestamp then the task is not run when the output is not there... (like after a clean operation)

tyro-jason avatar Jun 22 '23 03:06 tyro-jason

I also experienced this issue using the latest version. Every condition is the same, except that I'm running this on Linux (Manjaro).

nagygr avatar Oct 21 '24 09:10 nagygr

+1 to this.

@andreynering — could we consider adding a check to the IsUpToDate function to mark a task as outdated if any of the generates files are missing?

bijela-gora avatar May 06 '25 01:05 bijela-gora