Skip to content

include generated files in the checksum method #2313

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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

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.

1 participant