numtide / treefmt-nix

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

flake-parts: Allow configuring project root #89

Closed srid closed 1 year ago

srid commented 1 year ago

Without this, the flake check hardcodes self.

This is used here: https://github.com/srid/haskell-flake/pull/179 where the CI is building a subflake, whose treefmt needs to format files from repo root.

zimbatm commented 1 year ago

sounds good, just needs a bit of formatting

srid commented 1 year ago

I ran nix fmt, but it ended up also modifying the lock file (something that can be caught early in CI using --no-update-lock-file), btw.

zimbatm commented 1 year ago

All good 👍

bors merge

bors[bot] commented 1 year ago

Build succeeded!

The publicly hosted instance of bors-ng is deprecated and will go away soon.

If you want to self-host your own instance, instructions are here. For more help, visit the forum.

If you want to switch to GitHub's built-in merge queue, visit their help page.