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

Combo calculator allows combos that contain feature dependencies. #19

Open
nihohit opened this issue Oct 1, 2024 · 3 comments · May be fixed by #21
Open

Combo calculator allows combos that contain feature dependencies. #19

nihohit opened this issue Oct 1, 2024 · 3 comments · May be fixed by #21
Labels

Comments

@nihohit
Copy link
Contributor

nihohit commented Oct 1, 2024

[dependencies]
foo = []
bar = ["foo"]
foobar = ["bar"]

The combos ["foobar", "bar"], ["foobar", "foo"] & ["bar", "foo"] should be omitted, since they're implied by the dependency graph. They should be automatically treated as

[[rule]]
when = "foobar"
require = ["foo", "bar"]
[[rule]]
when = "foo"
require = ["bar"]
@BD103
Copy link
Member

BD103 commented Oct 2, 2024

I agree. Feature dependencies are currently ignored, but it's leading to edge cases like these. Thanks for the report!

@BD103 BD103 added the C-Bug label Oct 2, 2024
@nihohit
Copy link
Contributor Author

nihohit commented Oct 2, 2024 via email

@BD103
Copy link
Member

BD103 commented Oct 2, 2024

All feature names are interned in this module. If you need help with the code, I'm @BD103 on Bevy's Discord! :)

@nihohit nihohit linked a pull request Oct 6, 2024 that will close this issue
@BD103 BD103 linked a pull request Oct 6, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants