Repository navigation
Closed
Description
- Confirmed this is a problem with running a
brewcommand and notbrew installing or the post-install behaviour of one or more formulae? If it's a formulae-specific problem please file this issue at the relevant tap e.g. for Homebrew/homebrew-core https://github.com/Homebrew/homebrew-core/issues/new - Ran
brew updateand retried your prior step? - Ran
brew doctor, fixed all issues and retried your prior step? - Ran
brew configandbrew doctorand included their output with your issue?
Output of brew config:
-bash-4.4.12- /Users/miccal [> brew config
HOMEBREW_VERSION: 1.3.6-190-ge300713
ORIGIN: https://github.com/Homebrew/brew
HEAD: e300713f253029ef91a86bc4006d316582fc6d13
Last commit: 31 hours ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: 09c4dd5f89931a49fb2679df3ad05d38b96372e1
Core tap last commit: 4 hours ago
HOMEBREW_PREFIX: /usr/local
HOMEBREW_DEVELOPER: 1
HOMEBREW_NO_ANALYTICS: 1
HOMEBREW_NO_AUTO_UPDATE: 1
CPU: quad-core 64-bit broadwell
Homebrew Ruby: 2.3.3 => /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby
Clang: 9.0 build 900
Git: 2.15.0 => /usr/local/bin/git
Curl: 7.54.0 => /usr/bin/curl
Perl: /usr/local/bin/perl => /usr/local/Cellar/perl/5.26.1/bin/perl
Python: /usr/local/opt/python/libexec/bin/python => /usr/local/Cellar/python/2.7.14/Frameworks/Python.framework/Versions/2.7/bin/python2.7
Ruby: /usr/local/bin/ruby => /usr/local/Cellar/ruby/2.4.2_1/bin/ruby
Java: 1.6.0_65-b14-468
macOS: 10.13.1-x86_64
Xcode: N/A
CLT: 9.0.1.0.1.1506734476
X11: 2.7.11 => /opt/X11
Output of brew doctor:
-bash-4.4.12- /Users/miccal [> brew doctor
Your system is ready to brew.
To help us debug your issue please explain:
- What you were trying to do (and why)
I was reviewing the output of brew config after noting that the PR #3420 added the output of the curl path and version to brew config, as shown below:
Curl: 7.54.0 => /usr/bin/curl
- What happened (include command output)
The output of the curl path and version is not correct on my system, as I use a brew'ed curl:
-bash-4.4.12- /Users/miccal [> which curl
/usr/local/opt/curl/bin/curl
-bash-4.4.12- /Users/miccal [> curl --version
curl 7.56.1 (x86_64-apple-darwin17.0.0) libcurl/7.56.1 SecureTransport zlib/1.2.11
Release-Date: 2017-10-23
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp smb smbs smtp smtps telnet tftp
Features: AsynchDNS IPv6 Largefile NTLM NTLM_WB SSL libz UnixSockets
Note that I have the following added to my .bash_profile:
export PATH="/usr/local/opt/curl/bin:$PATH"
- What you expected to happen
Question: Should brew config output the correct curl path and version?
- Step-by-step reproduction instructions (by running
brewcommands)
If you are not using the system curl, check the output of Curl: in brew config.
Metadata
Metadata
Assignees
Labels
No labels
Activity
MikeMcQuaid commentedon Nov 7, 2017
This is correct, Homebrew does not use the brewed curl unless the system one is too old.
miccal commentedon Nov 7, 2017
Thanks @MikeMcQuaid. Another question if I may - I have not set either of the environment variables
HOMEBREW_PREFIXorHOMEBREW_NO_AUTO_UPDATE, and they do not appear when Iprintenv. Obviously settingHOMEBREW_PREFIXis automatic, but why isHOMEBREW_NO_AUTO_UPDATEset in mybrew configif I have not personally set it?MikeMcQuaid commentedon Nov 7, 2017
@miccal Nice spot; that was reuse of a variable and will be fixed in #3435.
miccal commentedon Nov 28, 2017
@MikeMcQuaid I have a related question to this issue - I was reviewing the output of
brew configafter #3482 was merged, as shown below:I notice that setting
HOMEBREW_FORCE_BREWED_CURLnow reports that thebrew'edcurlis in use, but I also note the addition ofHOMEBREW_ENV_FILTERING: 1as a consequence of #3487, and I also note that nowbrew configis reportingwhere before
and on my system
Is this a consequence of
HOMEBREW_ENV_FILTERING: 1, and is this the intended behaviour?Thanks.
ilovezfs commentedon Nov 28, 2017
Try
export HOMEBREW_GIT=/usr/local/opt/git/bin/gitmiccal commentedon Nov 28, 2017
@ilovezfs thanks, I realise I can do that, but the point is that this has changed very recently, I assume with the merging of #3487, and wondered if it was intended.
ilovezfs commentedon Nov 28, 2017
/usr/local/bin is deliberately filtered out of the PATH, so yes this works as currently designed.
miccal commentedon Nov 28, 2017
OK, thanks.
miccal commentedon Nov 29, 2017
@ilovezfs one final question if I may - if
/usr/local/binis bing filtered out ofPATHbyHOMEBREW_ENV_FILTERING, why are Perl, Python and Ruby not affected inbrew config(although Python is in/usr/local/opt):Sorry for the query, just curious!
ilovezfs commentedon Nov 29, 2017
Those requirements use Requirement#which or Requirment#which_all, which use
ORIGINAL_PATHS. Thegitrequirement uses Utils::git_available?, which doesn't.miccal commentedon Nov 29, 2017
Great, thanks again @ilovezfs.
electriquo commentedon Apr 20, 2018
@miccal: i came across this thread and was wondering:
HOMEBREW_GIT)thanks.
MikeMcQuaid commentedon Apr 20, 2018
Yes.
Build from source with
--env=std. Note that this is not tested and we will not fix any issues that arise using this.