nix-error-proposal
nix-error-proposal copied to clipboard
Errors to improve
I'd like to start an issue to collect errors for phase 3.
cycle detected in the references of '/nix/store/2411dvdj3q2n3ai3ah3298rb2m1w4h58-qtremoteobjects-5.12.6-dev' from '/nix/store/jzvmrvaz45wradqs3nsh1x4kxfkhpsar-qtremoteobjects-5.12.6'-> idea: include something like nix why-depends --all in the error output
- In NixOS modules, using
metaas a (custom module) configuration attribute clashes silently with its use as module metadata, leading to near undebuggable results e.g. duplicated configuration ([ "foo" ]turns into[ "foo" "foo" ]for no reason). An instance can be found here: https://discourse.nixos.org/t/question-help-wanted-duplicated-elements-in-listof-option/6303.- Idea: Handle module clashes and error out
This isn't an issue officially, but putting a space in the "hash mismatch" error would be nice. Instead of
hash mismatch in fixed-output derivation '/nix/store/rxha30aaj55h0gm73w9fv5rnp2h6mzpp-source':
wanted: sha256:17f7d7f4r9mzvjp050d083i37vc1yvwwxibagwvzdqp2is63pb52
got: sha256:16b734y1pr0z07pi08882py6mshifn94fbnfv6q4fy1j6747624i
this:
hash mismatch in fixed-output derivation '/nix/store/rxha30aaj55h0gm73w9fv5rnp2h6mzpp-source':
wanted: sha256: 17f7d7f4r9mzvjp050d083i37vc1yvwwxibagwvzdqp2is63pb52
got: sha256: 16b734y1pr0z07pi08882py6mshifn94fbnfv6q4fy1j6747624i
That way you can doubleclick on the hash to select it. Saves a small amount of time!