Homebrew / brew

🍺 The missing package manager for macOS (or Linux)
https://brew.sh
BSD 2-Clause "Simplified" License
41.46k stars 9.75k forks source link

Regression of brew search, it doesn't honor tty #4981

Closed yurikoles closed 6 years ago

yurikoles commented 6 years ago

Please note we will close your issue without comment if you delete, do not read or do not fill out the issue checklist below and provide ALL the requested information. If you repeatedly fail to use the issue template, we will block you from ever submitting issues to Homebrew again.

To help us debug your issue please explain:

brew doctor ``` Please note that these warnings are just used to help the Homebrew maintainers with debugging if you file an issue. If everything you use Homebrew for is working fine: please don't worry or file an issue; just ignore this. Thanks! Warning: "config" scripts exist outside your system or Homebrew directories. `./configure` scripts often look for *-config scripts to determine if software packages are installed, and what additional flags to use when compiling and linking. Having additional scripts in your path can confuse software installed via Homebrew if the config script overrides a system or Homebrew provided script of the same name. We found the following "config" scripts: /Applications/Wine Staging.app/Contents/Resources/wine/bin/xslt-config /Applications/Wine Staging.app/Contents/Resources/wine/bin/xml2-config Warning: Putting non-prefixed coreutils in your path can cause gmp builds to fail. ```
brew config ``` HOMEBREW_VERSION: 1.7.6-9-g2ea3aee ORIGIN: https://github.com/Homebrew/brew HEAD: 2ea3aee461f4b2f22ccc9b6f72b4426448bc1039 Last commit: 68 minutes ago Core tap ORIGIN: https://github.com/Homebrew/homebrew-core Core tap HEAD: bb29454d2a50f8fc24173dc188e4402d1bade79b Core tap last commit: 17 minutes ago HOMEBREW_PREFIX: /usr/local HOMEBREW_DEV_CMD_RUN: 1 HOMEBREW_GITHUB_API_TOKEN: set HOMEBREW_NO_EMOJI: 1 CPU: quad-core 64-bit haswell Homebrew Ruby: 2.3.7 => /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby Clang: 10.0 build 1000 Git: 2.19.0 => /usr/local/bin/git Curl: 7.54.0 => /usr/bin/curl Java: 10.0.2 macOS: 10.14-x86_64 CLT: 10.0.0.0.1.1535735448 CLT headers: 10.0.0.0.1.1535735448 Xcode: 10.0 XQuartz: 2.7.11 => /opt/X11 ```

Related: #2861 https://github.com/Homebrew/homebrew-cask/issues/29596

yurikoles commented 6 years ago

Example of search of cask:


$ brew search dotnet|xargs brew cask install 
Error: Cask '==>' is unavailable: No Cask with this name exists. Did you mean one of these?
0-ad                       1password-cli              4k-slideshow-maker
010-editor                 1password6                 4k-stogram
0xed                       245cloud                   4k-video-downloader
115browser                 33-rpm                     4k-video-to-mp3
1clipboard                 360safe                    4k-youtube-to-mp3
1password                  3cxphone                   4peaks
1password-beta             3dconnexion```
MikeMcQuaid commented 6 years ago

@yurikoles Thanks! Could you check out earlier tags and report what is the latest one in which you cannot reproduce the issue?

yurikoles commented 6 years ago

Thanks for suggestion, I got deeper and bisected, it's definitely da193d2f7efc2079db8da8056e53fc458d5e2036

yurikoles commented 6 years ago

I had used brew search dotnet|xargs brew cask install to test it.

yurikoles commented 6 years ago

Same with brew search gcc@7|xargs brew install

It works in f7d0c89c21bc843b1f69cc5c028a9044e1e43c0d, but broken in da193d2f7efc2079db8da8056e53fc458d5e2036

reitermarkus commented 6 years ago

This is working as intended, the only commands supported for scripting are brew search and brew search --casks, since these are the only ones where you can know if they will return formulae or casks.