Skip to content

🪲[Bug]: treefmt config dissonance #62

@yangm97

Description

@yangm97

Describe the bug

It seems that the treefmt setup is applying different configurations depending on if you run nix fmt or nix flake check, as the latter will complain about changes done by the former.

I'm not really sure this is a problem caused by fpb(flake-parts-builder), I suppose it could be caused by some change upstream, just like now it needs the systems input but I decided to open an issue here first just in case it has something to do with the way fpb sets things up and/or defaults.

Steps To Reproduce

Steps to reproduce the behavior:

  1. run nix run github:tsandrini/flake-parts-builder -- init -p +github,+nixos,treefmt,systems myNewProject
  2. run cd myNewProject
  3. run nix fmt
  4. run nix flake check

Expected behavior

A clear and concise description of what you expected to happen.

Screenshots

Image

Additional context

It seems that the two commands are building different packages, I noticed

Notify maintainers

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
output here

Add a 👍 [reaction] to [issues you find important].

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions