Skip to content
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

Improve "illegal path references in fixed output derivation" error #12

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

bmillwood
Copy link

This was just merged into nix, see:

I've asked about this on Matrix and to the best of my knowledge there's no automatic means by which Nix patches make it over here, so I thought I'd just make the PR again. Happy for this to be closed / ignored if the change would make it into Lix eventually regardless.

I also haven't specifically tested this in Lix. I tested that it built but since it's a simple change, I'm hoping you'll find the Nix testing sufficient. Let me know if not (though realistically I might not have time to do more particularly soon.)

Motivation

Improving a somewhat-maligned Nix error message (the issue above has links to people complaining about this one).

The main improvement is that the new message gives an example of a path
that is referenced, which should make it easier to track down. While
there, I also clarified the wording, saying exactly why the paths in
question were illegal.
@bmillwood bmillwood marked this pull request as ready for review January 27, 2025 00:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant