mirror of
https://github.com/hercules-ci/flake-parts.git
synced 2024-12-14 11:47:31 +00:00
3a0408e3ac
The alternative would have been to try and make this not an evaluation error, but that would cause problems. Idea: use filterAttrs to construct an attrset "inputFlakes". This would be bad because it requires that we evaluate all inputs, just to see whether they're flakes or not. If Nix were to provide this metadata independently, which it could do very efficiently, we still ought to wonder what's the purpose of eliding those attributes. The only ways you'll encounter this exception in `inputs'.<broken>` is by either - making a mistake, in which case the error message is great - or traversing all inputs, which nobody should do. See https://flake.parts/best-practices-for-module-writing#do-not-traverse-inputs Other idea: return *something empty*. This avoids the strictness problem above, but still optimizes for the wrong use case. Ultimately though, attribute transposition should not be needed at all, but this project is largely dependent on the implicit schema imposed by Nix. |
||
---|---|---|
.. | ||
apps.nix | ||
checks.nix | ||
debug.nix | ||
devShells.nix | ||
flake.nix | ||
formatter.nix | ||
legacyPackages.nix | ||
moduleWithSystem.nix | ||
nixosConfigurations.nix | ||
nixosModules.nix | ||
nixpkgs.nix | ||
overlays.nix | ||
packages.nix | ||
perSystem.nix | ||
transposition.nix | ||
withSystem.nix |