numtide / treefmt-nix

treefmt nix configuration
https://numtide.github.io/treefmt/
MIT License
269 stars 83 forks source link

treefmt: error: failed to generate change set: failed to open git index: invalid checksum #255

Open sg-qwt opened 4 weeks ago

sg-qwt commented 4 weeks ago

Hi,

After recent upgrade, I've encontered below error running nix fmt

treefmt: error: failed to generate change set: failed to open git index: invalid checksum

Any idea what might caused this and how to troubleshoot this case?

My nixos is public here, so you may be as well reproduce it by running nix fmt on it btw.

Thanks!

brianmcgee commented 4 weeks ago

I'm finishing up some changes to the docs before releasing what's currently on main. I made many improvements, including moving away from go-git and shelling out to git instead. I suspect this would resolve your problem.