Open Julow opened 1 year ago
Can you create a PR with the cram test with the promoted output and write in the cram the behaviour you expect? It will make it easier for us to take a look.
I'll do that.
Though, this might not be a bug. The documentation mention that non-existing files are treated as empty files for the purpose of diffing. It's normal that diffing two empty files result in no diff, triggering no promotion.
Right, but in that case we could probably still register the file for promotion even if it is empty.
Expected Behavior
I would expect empty files to be promotable.
Actual Behavior
When diffing an empty file on the right and a non existing file on the left, Dune log that files differs and promotion doesn't create the file.
Reproduction
Here's the diff in the
non-existent.t
test:Specifications
main