-
-
Notifications
You must be signed in to change notification settings - Fork 10k
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
Adding proxy variables to FILTERED_ENV #3501
Conversation
bin/brew
Outdated
@@ -89,6 +89,7 @@ then | |||
|
|||
FILTERED_ENV=() | |||
for VAR in HOME SHELL PATH TERM LOGNAME USER CI TRAVIS http_proxy \ | |||
https_proxy ftp_proxy no_proxy \ |
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.
What is no_proxy
used for? Can you move http_proxy
from the previous line, thanks!
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.
no_proxy
lets you list internal domains that should not use the proxy server. Patch updated.
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.
Why would you use this with Homebrew?
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.
What if somebody had some private casks in their intranet, for instance?
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.
@barreyra Which of these variables do you personally need for Homebrew to function? I don't want to whitelist everything that could be useful but just things that individuals need.
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.
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.
So not setting the http proxy?
What's the difference between the lower and uppercase versions of the variables? I've always used the lowercase versions.
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.
Answering my own question, from the curl manpage:
The environment variables can be specified in lower case or upper case. The lower case version has precedence. http_proxy is an exception as it is only available in lower case.
Why do you prefer the uppercase version?
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.
Why do you prefer the uppercase version?
That's the version that's documented in the man page if you're copy-pasting.
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.
I'm fine going with this for now. I had added no_proxy because it was one of the asks in #3500
Thanks for your first contribution to Homebrew, @barreyra! Without people like you submitting PRs we couldn't run this project. You rock! |
Thanks, but it's not my first commit, I added libbluray support to ffmpeg back in the day :) Homebrew/homebrew-core@e451b7f |
First commit to Homebrew/brew then 😁 |
Fixes #3500
brew tests
with your changes locally?