Skip to content

v2.0.4

Compare
Choose a tag to compare
@github-actions github-actions released this 08 Aug 09:39
· 239 commits to main since this release
v2.0.4
31e363d

Bugfixes

  1. There was a naive optimisation for resolving relative paths within the walker implementations, which manifested in a few different issues. This has been refactored with a robust implementation.
  2. Searching for .treefmt.toml and relying on $PRJ_ROOT have been re-introduced for parity with v1.
  3. We were not gracefully handling the case where a file was removed from the filesystem but not yet staged. We now log a warning and continue when this happens.

New CI flag

You can now run treefmt with a --ci flag which does the following:

  • ensures INFO level logging at a minimum
  • enables --no-cache and --fail-on-change
  • introduces a small startup delay, so we do not start processing until the second after the process starts, thereby ensuring the accuracy of our change detection based on second-level mod time. This was causing intermittent failures in CI due to how fast a git checkout and subsequent treefmt invocation were occurring.

Changelog

Nixpkgs PR Tracker

https://nixpkgs-tracker.ocfox.me/?pr=333200