BUG: uv tree --invert --package ...
sometimes also displays packages I didn't ask for
#11349
Labels
bug
Something isn't working
Summary
When I run
uv tree --invert --package ...
against astropy, I sometimes get more packages to show up in the displayed tree than I asked for, which seems like a bug.This is obvious when requesting a single package as root and limiting the depth to 0.
In all cases I found that reproduce this problem,
asdf-astropy
seems to be the one package that show up uninvited. However, it may or may not show up depending on the package I ask for:The output seems consistent (no randomness I can see) for any given command, however I don't have a clear idea why
--package numpy
works and--package six
doesn't. My experiments suggest it has nothing to do with numpy being a direct and hard dependency to astropy, as I also hit the bug with--package astropy-iers-data
I wasn't able to reproduce this with a simpler package, though I admit I only tried a bottom-up approach; I did not attempt to simplify astropy's dependencies.
Platform
macOS 15.3 arm64
Version
uv 0.5.29 (ca73c47 2025-02-05)
Python version
Python 3.12.9
The text was updated successfully, but these errors were encountered: