-
Notifications
You must be signed in to change notification settings - Fork 64
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
Private repo dependencies no longer being skipped #563
Comments
Thanks for the report! Hmm, this is an interesting problem: we no longer use a custom resolver because of soundness issues, which means that we don't have access to this kind of resolution granularity -- a CC @tetsuo-cpp for thoughts -- I'm tempted to say that this is an expected change based on other bugs we've fixed, but maybe there's a workaround I haven't thought of. In terms of alternatives, I think there are two:
Could you let us know if either of those two work for you? If so, we can improve our documentation to guide users with private dependencies towards one or the other. |
Ah ok gotcha. Yeah this was my first consideration when reviewing the options in the help docs. However, I actually already have the private repo specified in my users A.k.a When my
But when my
Note: I specify the |
Yeah, I think the answer is to supply the private indices via the
|
So I reviewed the code and determined the source of the issue to be the way that |
@philblckwd That looks great! We'd definitely be happy to work on getting that in if you make a PR for it. Thanks for looking. |
Perfect! I just opened the PR for it: #565 . Thanks! |
Bug description
Private repo dependencies are no longer being skipped if they cannot be resolved.
For example, in the v2.4.14, the audit would succeed and then show that the packages were skipped:
But now in v2.5.x, the audit fails and shows the error:
Reproduction steps
pip-audit
v2.5.x is installedrequirements.txt
file with a dependency that is installed from a private repopip-audit -r requirements.txt
Expected behavior
I'd expect the same behaviour as v2.4.14 - whereby the private dependencies would simply be skipped - unless the
-S
flag was specified.Platform information
pip-audit
version (pip-audit -V
): 2.5.2python -V
orpython3 -V
): 3.11.2pip
version (pip -V
orpip3 -V
): 23.0.1The text was updated successfully, but these errors were encountered: