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

Fix #392 #393

Merged
merged 2 commits into from
Oct 5, 2023
Merged

Fix #392 #393

merged 2 commits into from
Oct 5, 2023

Conversation

scottbot95
Copy link
Contributor

Implements my proposal from #392

aldoborrero
aldoborrero previously approved these changes Oct 3, 2023
Copy link
Collaborator

@aldoborrero aldoborrero left a comment

Choose a reason for hiding this comment

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

LGTM. Maybe as I said on #392 we could consider adding a check to isDerivation and avoid recursing in such instances as well.

@scottbot95
Copy link
Contributor Author

I had that at one point, but checking for the presence of enabled should prevent us from seeing a derivation in the fist place. I guess there's no reason not to include the extra checks though.

Ideally we would probably do whatever NixOS modules do to detect infinite recursion, but I can't be bothered to figure that out at this time lol.

@aldoborrero
Copy link
Collaborator

Hey it works for now. We can improve the code later if necessary 😉

@aldoborrero aldoborrero merged commit b97c565 into nix-community:main Oct 5, 2023
44 checks passed
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.

2 participants