-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
flake-parts module breaks nix flake show #78
Comments
I think this was fixed. At least I couldn't repro. I'll close the issue but let me know if you still have that problem. |
@zimbatm this is still happening with these inputs:
The weird thing it that some nix caching is involved because it returns two different errors if I run nix flake show twice: [zarel@playa:~/code/nix examples/linting]$ nix flake show
path:/home/zarel/code/nix examples/linting?lastModified=1689771602&narHash=sha256-l2k02g4W%2fh0c2MdgBYRwDxYqVk4Xq2%2fQjX1sP2ab%2fWc=
├───apps
│ └───x86_64-linux
├───checks
│ └───x86_64-linux
error: The option `perSystem.x86_64-linux.treefmt' is used but not defined.
(use '--show-trace' to show detailed location information)
[zarel@playa:~/code/nix examples/linting]$ nix flake show
path:/home/zarel/code/nix examples/linting?lastModified=1689771602&narHash=sha256-l2k02g4W%2fh0c2MdgBYRwDxYqVk4Xq2%2fQjX1sP2ab%2fWc=
├───apps
│ └───x86_64-linux
├───checks
│ └───x86_64-linux
error: 'checks.x86_64-linux' is not an attribute set I'm going to open a repository for you to try this out, if it's not reproducible then I don't know what's happening since I don't have any special configuration (it's Nix 2.13.3 with sandbox and flakes enabled) and that's it |
This is the minimal example that breaks the show for me |
I'm getting a different error on your repo:
|
Describe the bug
When imported, nix flake show throws an error like: error: The option `perSystem.x86_64-linux.treefmt' is used but not defined.
Running nix flake show again says error: 'checks.x86_64-linux' is not an attribute set
To Reproduce
This is a minimal flake.nix triggering the issue
Error is encountered by running
nix flake show
or also by runningnix fmt
Expected behavior
If there's a mandatory option to set in order to not have errors, have it printed in the error message or documented in the flake-parts website
System information
These are the commits in the lockfile at the moment of writing as obtained with
nix flake metadata
Running on x86_64-linux
The text was updated successfully, but these errors were encountered: