Use SystemCommand for curl.#4561
Conversation
0e6db57 to
4b29946
Compare
There was a problem hiding this comment.
Can you indent this two be further left? It's not clear it's a multiline block as-is
There was a problem hiding this comment.
Might be nice if (eventually) capturing output like this is something possible with SystemCommand
There was a problem hiding this comment.
@reitermarkus Nice! I think it would be cool if eventually all the calls to system, Formula#system, Utils.popen* end up wrapping system_command calls.
6a8ad6e to
739a2b1
Compare
739a2b1 to
355df64
Compare
|
This seems to have broken |
|
Also getting weird |
|
Before workaround
|
|
Reverted in #4567 due to the above issues and because it broke |
I cannot reproduce that. This is specifically handled here: https://github.com/Homebrew/brew/pull/4561/files#diff-a9ba9eb033a1940106d96b8be0edcff2R41
Any other way to unset a variable? |
I can: |
|
Can you try changing the whole |
What's wrong with |
|
I would question why we're modifying the environment! What if I wanted to have that variable set? Is it now an issue because it's being set automatically by some other software, or is this some people with a particular setup that's getting in the way? Perhaps just look for it being set and provide a warning instead of making the change (silently)? |
|
@asharpe Homebrew intentionally filters and controls environment variables. This is a feature rather than a bug as it makes building from source more reliable. |
|
@MikeMcQuaid yep, totally get that while building software. The variable being controlled here is just for downloads, and SSL configuration at that. I'm still skeptical about the need to control this one :) |
This one is already filtered from the user environment, but it could be set by Ruby with |
|
@asharpe With respect, we wouldn't do so if we didn't need to.
@reitermarkus This is not necessarily the case 😉 |
If there is a good enough reason, of course, as with any of the other whitelisted variables. |
brew stylewith your changes locally?brew testswith your changes locally?