-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
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
Filter all environment variables by default #932
Comments
Like |
Somewhat, yeh. We'll need to obviously keep some variables around. This may end up being either a whitelist or sourceing the system defaults. |
eval `/usr/libexec/path_helper -s` but Anything else? |
|
|
Agreed all around, then 👍 |
I'm more thinking with |
Yeah, we can probably set |
👍 For I suspect we should use the system's default Setting it to |
Why?
Isn't |
It can also be interpreted as "don't support UTF-8". We now have |
Good point.
👍 |
Viewed the other way,
Yes, The POSIX locale is a minimal locale intended for portability, not one that handles everything in some uniform way. Yeah, I have done a lot of locale and character-encoding work. Trust me that this is a rabbit hole we could go down forever before getting back to Homebrew's env sanitization. 😄 |
Multiple issues have been filed about this environment variable, hence give a warning. Homebrew#932 might make this unnecessary when merged, but hopefully this warning can be merged quickly.
Got bitten by (the lack of) this: |
Somehow it seems that PR #1753 never got referenced here, as a draft implementation of this. It doe sort of look like there are some unresolved subtleties in the discussion here that the #1753 implementor should maybe address. |
Suggested solution for 'Filter all environment variables by default #932' issue
This would be quite nice to have. I recently encountered a formula that broke because I have LIBDIR set in my environment and it was rather confusing to debug. |
@akvadrako you can try it out
|
This will be done by default in Homebrew 1.4.0 (#3529) and is done by default right now for anyone on the |
Homebrew should filter all user environment variables and favour the system defaults by default when doing
brew install
(or friends) orbrew test
. This will avoid environment contamination breaking the from-source build.The text was updated successfully, but these errors were encountered: