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: Prevent duplicate direct dependencies in tree #1184

Merged
merged 3 commits into from
Apr 16, 2024

Conversation

abkfenris
Copy link
Contributor

This should keep pixi tree from displaying duplicate top level dependencies by filtering on Conda/PyPI sources. This doesn't handle mapping between Conda/PyPI names.

fixes: #1158

This should keep `pixi tree` from displaying duplicate top level dependencies by filtering on Conda/PyPI sources. This doesn't handle mapping between Conda/PyPI names.

fixes: prefix-dev#1158
@ruben-arts
Copy link
Contributor

Can you help me understand what is still missing in your opinion? I'm not sure what we would need the mapping for as the mapping is used to create the lock file. But tree only reads from it. So it wouldn't need to interface the mapping itself.

This already looks good to me! Thanks for the fix.

@abkfenris
Copy link
Contributor Author

I don't know know enough about thorny mapping problems like the opencv/opencv-python issue you mentioned, to know if the tree is getting built wrong.

I could see something like this rendering incorrectly, or at least not how I'd expect it to:

[dependencies]
opencv = #...

[pypi-dependencies]
something-that-depends-on-opencv = #...

But if you think this works, feel free to land it.

@ruben-arts ruben-arts enabled auto-merge (squash) April 16, 2024 07:49
Copy link
Contributor

@ruben-arts ruben-arts left a comment

Choose a reason for hiding this comment

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

Looks good to me! Thanks

@ruben-arts ruben-arts merged commit 5f6219d into prefix-dev:main Apr 16, 2024
24 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.

pixi list and pixi tree behave weird when specifying the same dependency in conda and pypi
2 participants