You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
misleading feature: "generates" and checksum checker #2181
It's very misleading how task.generates feature works.
One would assume that the task will run if combined checksum of sources and outputs does not match sources/results of previous execution, e.g. having such definition
.. One would expect that if some generated files are missing, or are unintentionally changed, this will cause task to rerun.
How it actually works with checksum checker:
Checksum is calculated and checked for sources;
For generates list, it's only verified that glob matches any files.
This means that "generates" is only somewhat usable with absolute file names, as that would ensure the files existence at the very least. With globing, if some of the files are deleted, that's never detected.
The current checksum implementation handling of the "generates" :
This is really one of those features that is REALLY required. For us to live up to the "simpler than Make" statement. The basic feature of only executing when required needs to be supported.
Activity
ameershira commentedon Apr 22, 2025
This is really one of those features that is REALLY required. For us to live up to the "simpler than Make" statement. The basic feature of only executing when required needs to be supported.
My previous issue: #1741
My last statement: #1741 (comment)
Other related issues: #1945
Related PR: #1816
hanoii commentedon Jun 8, 2026
Also I think is useful if one can simple tell generates about a directory, i.e: