canonical / chisel

GNU Affero General Public License v3.0
248 stars 39 forks source link

feat: report mutated files #131

Closed letFunny closed 3 weeks ago

letFunny commented 3 months ago

The paths with mutable: true property can be "mutated" with mutation scripts. Thus, the files matching those paths may have a different size and hash after the mutation scripts have been run. The report should reflect these changes by updating the entries of the mutated paths.

Paths can also have the until: mutate property. This means that those files are available until the mutation scripts have been run and are not present in the final file system. Thus, they should not be part of the report either.

This commit adds support for both -- it updates the changed properties of mutated files and makes sure not to add report entries for until: mutate.

letFunny commented 3 months ago

Apologies for force pushing, there was a problem with the authoring of one of the commits because Github rewrote Rafid's email when working on my fork and commiting. I have had to change it and force push to get the CLA passing.