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

Make proxy parameter override environment proxy #10691

Closed
wants to merge 3 commits into from

Conversation

meiswjn
Copy link

@meiswjn meiswjn commented Nov 29, 2021

This PR addresses #10685. It makes the "--proxy" parameter take precedence over environment variables.

news/10685.bugfix.rst Outdated Show resolved Hide resolved
Co-authored-by: Tzu-ping Chung <[email protected]>
@pradyunsg
Copy link
Member

Hmm... this is a change in a vendored library (specifically: https://github.com/psf/requests/). We don't modify our vendored libraries to change their behaviours (https://pip.pypa.io/en/stable/development/vendoring-policy/).

The modified class, specifically, does handle getting the proxy from self.proxies later (around line 710), so this might not be the correct fix upstream either. None the less, I'd recommend filing a PR against the requests project for fixing this -- a fix that we will pull in for the pip release that's made after requests fixes this. :)

@meiswjn
Copy link
Author

meiswjn commented Apr 4, 2024

Closed by #11091

@meiswjn meiswjn closed this Apr 4, 2024
@meiswjn meiswjn deleted the respect-explicit-proxy branch April 4, 2024 07:31
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 20, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants