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

Emit an attribute for legacyPackages that fail to evaluate #23

Merged
merged 1 commit into from
Jul 1, 2024

Conversation

edolstra
Copy link
Collaborator

@edolstra edolstra commented Jul 1, 2024

E.g. AAAAAASomeThingsFailToEvaluate in Nixpkgs. This fixes a test in Nix's test suite.

[ ])
[{
name = attrName;
value = throw "failed";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if there's a way to reuse the error that would have occurred if we recursed here, so that it's not just a context-less "failed"?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not easily. We could do something like value = ... whatever value caused the error ... but that's a bit error-prone. Maybe something like

value = assert attrs.type != null; throw "failed";

E.g. AAAAAASomeThingsFailToEvaluate in Nixpkgs.
@edolstra edolstra force-pushed the show-failed-legacy-packages branch from a9cac93 to 042afa6 Compare July 1, 2024 18:03
@edolstra edolstra merged commit 61a02d7 into main Jul 1, 2024
1 check passed
@cole-h cole-h deleted the show-failed-legacy-packages branch July 1, 2024 19:48
edolstra added a commit to DeterminateSystems/nix-src that referenced this pull request Jul 2, 2024
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.

3 participants