Closed zimbatm closed 3 years ago
Workaround:
treefmt
# Check if any files have changed
if [[ -n "$(git status --porcelain -unormal)" ]]; then
echo "-----------------------------"
echo "ERROR: The project is dirty!"
echo "-----------------------------"
git status -unormal
exit 1
else
echo "--------------"
echo "OK: All good!"
echo "--------------"
fi
Describe the bug
I'm not sure exactly of the details but I have observed this myself. Whenever files are getting re-formatted, the tool doesn't show them as such.
This is especially an issue on CI where
treefmt --fail-on-change
is being used.To Reproduce
Expected behavior
It should output
of whom 1 files were re-formatted
.System information
NixOS, btrfs filesystem.
More context
Maybe we should listen to https://apenwarr.ca/log/20181113