fix: pin alejandra 4.0.0 to keep tabs in indented strings #11
Loading…
Reference in a new issue
No description provided.
Delete branch "t3/fix-t3code-update-format-check"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
nix flake updatebumped nixpkgs, which pulled alejandra 4.0.0 -> 4.1.0 and broke the format check on 8 files.indentation = "Tabs"inside''strings and re-indents them with spaces, mangling every multi-line script in the repo.nix/alejandra.nix, which overrides nixpkgs' alejandra back to 4.0.0 with the previous source and cargo vendor hashes, and documents when the pin can be lifted.formatter, theformatcheck and the dev shell at the pinned build (self'.formatter) so a future nixpkgs bump cannot change the formatting rules again.flake.lockis intentionally unchanged; the daily update job owns it.Trade-off: 4.0.0 is now built from source against the new nixpkgs instead of coming from the binary cache. It is a small Rust crate, so the added CI time is minor.
Testing
nix eval --raw .#formatter.x86_64-linux.versionreports4.0.0.nix fmt .succeeds and only formatted the new file.nix flake check -Lpasses, includingcheck-format(14 files, "Congratulations! Your code complies with the Alejandra style.") andcheck-lint.nix flake checkpasses again after restoringflake.lockto its original state.main.