Closed krzema12 closed 3 years ago
I realized that relying on git diff
is unsafe. Why: imagine that we want to check if file foo.txt
changed, but accidentally write the new output during CI build into doo.txt
. A new file is created and showing what changed for foo.txt
shows no changes, which is actually a result of our mistake. Writing to a separate file and diffing two files will fail if any of the files doesn't exist.
Simplify diffing outputs in build
The newly generated files are put under the same path as the committed files, and thanks to it it's possible to leverage git to check if the file changed. It has at least two benefits:
+
and-
characters which lines existed in the committed files and which were replaced by the newly generated onesDepends on #29.