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: stop recursion already when root attribute is a derivation #50

Merged
merged 2 commits into from
Jun 11, 2024

Conversation

ErinvanderVeen
Copy link

@ErinvanderVeen ErinvanderVeen commented Jun 11, 2024

Description

This PR ensures the recursion in find_attribute_paths doesn't recurse if the root attribute is a derivation itself.

Previously, nixtract would assume the root attribute was a attribute set with derivations in its branches.

Motivation

This fix resolves issues where the root attribute was a derivation, but not assumed to be. For exmaple, excluded bootstrap packages would still be considered.

Checklist

Checklist before merging:

  • CHANGELOG.md updated
  • README.md up-to-date

@thufschmitt thufschmitt merged commit dc961bc into main Jun 11, 2024
7 checks passed
@thufschmitt thufschmitt deleted the root-drv branch June 11, 2024 13:45
ErinvanderVeen pushed a commit that referenced this pull request Jun 12, 2024
ErinvanderVeen pushed a commit that referenced this pull request Jun 12, 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.

2 participants