-
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
resolvelib, test: handle relative URLs on 503-style indices #411
Conversation
Signed-off-by: William Woodruff <[email protected]>
Signed-off-by: William Woodruff <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM but I would wait to merge for testing, either by the reporter or by us.
Yep, confirmed locally, with a fake index like this:
where <a href="../packages/Flask-2.0.1-py3-none-any.whl">
Flask-2.0.1-py3-none-any.whl</a><br/> this resulted in a correctly resolved GET. Edit: tested with: python -m pip_audit --index-url http://localhost:8000/simple -r <(echo 'flask') |
Confirmed locally, so I'm going to merge. @f10rini let us know if you get a chance to test it on your end as well 🙂 |
Hey guys, sorry to report that the command is still failing for us. Gonna post the pip-audit output followed by some tracing related to the relative URLs so that you can see the difference. Looks like our path join is off for whatever reason. The debug logs below show it going from There's no pypi-all there anymore so it went up one too many levels? Here's the pip-audit output and some tracing
|
Dang. Thanks for checking. I think I know what happened: we're doing a
...and a path that looks like this:
intuitively that should produce this:
...but it actually removes three components instead of two, since Should be a one-line fix. |
alright makes sense to me |
yoo its workinn @woodruffw good stuff B-) awesome dude thanks! |
Awesome, thanks again for reporting and helping us debug! |
This should fix #410 -- I don't have a third-party index with relative URLs to test against, but I've surmised the behavior based on that report (and following the PEP).
cc @fi0rini -- could you give these changes a try and let me know if they work for you?
Signed-off-by: William Woodruff [email protected]