Skip to content

Conversation

@superg
Copy link

@superg superg commented Jul 2, 2025

This PR includes generated files into the calculated checksum to trigger task only when needed.

Namely, that implements:
#2181
and closes:
#2301 (original bug report for timestamp method but this PR will allow to use default checksum method and preserves original timestamp method behavior)

Example Taskfile.yml:

version: '3'

tasks:
  default:
    sources:
      - input/*.in
    generates:
      - output/*.out
    cmds:
      - mkdir -p output
      - cp input/one.in output/one.out
      - cp input/two.in output/two.out
  • initial task run will generate one.out and two.out
  • subsequent task run will report task is up to date
  • rename of any *.out file and running task will generate the files again
  • removal of any *.out file and running task will generate the files again

@superg
Copy link
Author

superg commented Nov 4, 2025

Closing this, I lost any interest and moved on.
It's hard to imagine a build system that is comparing itself to GNU Make and at the same time doesn't implement a core functionality that is make: define rules that specify how to create target files from source files.

@superg superg closed this Nov 4, 2025
@andreynering
Copy link
Member

Hi @superg.

I know we took a long time to review, but we're volunteers doing this on free time. This is not our full time job. 🙂

With regard to the feature itself, The existing behavior is somewhat by design. We still check if the generates files were all deleted and run again in that case.

I'll add this to my TODO list to maybe review soon.

@andreynering andreynering reopened this Nov 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants