You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I expect the second command to output an attrset with {zip/zap: <...foo.drv>}, instead of an empty set.
System information
I am using the determinate nix installer (version 0.32.2) with a pinned nixpkgs of 24.05 for my flake. I am unsure about the version of <nixpkgs> in the repl, but this behavior is the same if I run my flake checks directly.
Additional context
I apologize in advance if this is a simple error or misuse of the function; I am still quite new to nix. However, perhaps this is still a useful issue since it feels like "unexpected" behavior, unless I am completely misinterpreting the purpose of flattenTree.
The text was updated successfully, but these errors were encountered:
Maybe on could check if the function input is a set, and actually has the recurse property set. And if it doesn't, emit a warning/error? Cause I don't see how calling the function could be useful in that situation.
@dermetfan Thank you so much for the explanation! I suspected my issue was not fully understanding something about nix.
Perhaps this can be added as a cautionary use-case in the documentation for flattenTree. If any maintainers think it's a good idea, I would be happy to work on a PR for it.
Describe the bug
I am trying to use flattenTree to collapse a nested attrset for my flake checks, and it returns an empty set instead of concatenating the keys.
To Reproduce
Steps to reproduce the behavior:
A minimal case in nix repl:
Expected behavior
I expect the second command to output an attrset with
{zip/zap: <...foo.drv>}
, instead of an empty set.System information
I am using the determinate nix installer (version 0.32.2) with a pinned nixpkgs of 24.05 for my flake. I am unsure about the version of
<nixpkgs>
in the repl, but this behavior is the same if I run my flake checks directly.Additional context
I apologize in advance if this is a simple error or misuse of the function; I am still quite new to nix. However, perhaps this is still a useful issue since it feels like "unexpected" behavior, unless I am completely misinterpreting the purpose of flattenTree.
The text was updated successfully, but these errors were encountered: