-
Notifications
You must be signed in to change notification settings - Fork 62
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
Dependency resolution fails to install cyclonedx-python-lib-0.11.1
#159
Comments
We don't seem to be getting the Perhaps something about the directory structure of this package is different. |
Huh, that's concerning. Looking into it. Edit: Forgot to say, I was also able to repro this locally. |
First step: it's not an sdist issue, since So my expectation is that we'd pass that |
Actually, this is making even less sense: we shouldn't be calling |
Okay, here's the candidate selection step's results:
So that all looks correct: the wheel candidate is correctly identified as a wheel, and the sdist is correctly identified as a non-wheel. |
New theory: this is actually an uninitialized Candidate state issue. The traceback shows that we go from That in turn accesses |
I'm still not clear on why the source distribution install fails, but I think I know why it's happening now:
So, there are two problems here:
|
Ugh. Problem (2) really is a malformed-ish tarball issue. Here's what the listing for
...and here's what
So there's no separate archive record for the directory, which is what we expected. Groan. I'll see what other packaging tools do to handle this. |
Seems like our logic is bad here: I think we should get the package name from the metadata instead, something like https://github.com/pypa/pip/blob/4fac2b90a5d200b46e7b576013bb25f4ebb3f937/src/pip/_internal/utils/packaging.py#L41-L56. |
We should, but it's a little circular: we need to unpack before we can get to the metadata. |
FYI, I am also getting a similar error with the attached requirements file.
|
@hschilling That seems unrelated, can you open a new issue? |
Sorry, I see what you mean. Will do! Thanks for creating pip-audit |
Bug description
If I audit a requirements file that transitively depends on
cyclonedx-python-lib
, I see apip install
failure.Reproduction steps
requirements.txt
that looks like this (or any dependency that relies oncyclonedx-python-lib
):pip-audit -r requirements.txt
Expected behavior
All dependencies are audited properly.
Screenshots and logs
Platform information
pip-audit
version (pip-audit -V
): 1.0.0python -V
orpython3 -V
): 3.9.7pip
version (pip -V
orpip3 -V
): 21.3.1The text was updated successfully, but these errors were encountered: