15890 Commits

Author SHA1 Message Date
Mike McQuaid
ec6420229e brew.sh: remove unused variable.
As of #4377 this is no longer used.
2018-06-29 20:12:22 +01:00
Mike McQuaid
0d33aba0b7
Merge pull request #4377 from jacktose/force-brewed-git
Implement HOMEBREW_FORCE_BREWED_GIT
2018-06-26 19:34:44 +01:00
Jack Haden-Enneking
e63feb79f9
Simplify check before git install
No need to check for both variables, because they're always set together.
Also, this harmonizes with the CURL equivalent just above.
2018-06-26 11:14:32 -07:00
Jack Haden-Enneking
596f29aa40 Update manpages 2018-06-26 08:58:04 -07:00
Jack Haden-Enneking
9fd5a92ff6 Implement HOMEBREW_FORCE_BREWED_GIT
Because of this messing with the user's path:
https://github.com/Homebrew/brew/blob/
    efc02899c851c62c9ce0d15dea9a231575d7d774/bin/brew#L68
brew uses /usr/bin/git over brewed git, even when the former is
problematically old.
There may also be other reasons a user prefers to use brewed git.

There was already a HOMEBREW_FORCE_BREWED_CURL option and a
HOMEBREW_SYSTEM_CURL_TOO_OLD check to set it. This mostly copies those
to implement HOMEBREW_FORCE_BREWED_GIT & HOMEBREW_SYSTEM_GIT_TOO_OLD.

See also: https://github.com/Linuxbrew/brew/issues/736
2018-06-25 23:36:12 -07:00
Mike McQuaid
a75a8c69b3
Merge pull request #4376 from Homebrew/revert-4358-fix-subversion-download-of-versioned-formulae
Revert "Fix SVN downloads of versioned formula by munging directory names"
2018-06-26 07:11:02 +01:00
Mike McQuaid
c101a82c5b
Revert "Fix SVN downloads of versioned formula by munging directory names" 2018-06-26 07:10:36 +01:00
ilovezfs
7db0f97523
Merge pull request #4375 from ilovezfs/mirror-curl-executable
mirror: use curl_executable instead of curl function
2018-06-25 06:51:27 -07:00
ilovezfs
3b46736820 mirror: use curl_executable instead of curl function 2018-06-25 06:33:44 -07:00
ilovezfs
535f1fbd4e
Merge pull request #4374 from ilovezfs/mirror-invoke-correct-curl
mirror: invoke correct curl
2018-06-25 05:52:28 -07:00
ilovezfs
49157dbf17 mirror: invoke correct curl
Remove remaining use of `system "curl"` in favor of the `curl` function.
2018-06-25 05:21:55 -07:00
Mike McQuaid
7506abe5be
Merge pull request #4358 from apjanke/fix-subversion-download-of-versioned-formulae
Fix SVN downloads of versioned formula by munging directory names
2018-06-25 08:58:24 +01:00
Andrew Janke
b72c4e3248 Fix SVN downloads of versioned formula by munging directory names 2018-06-25 03:21:36 -04:00
ilovezfs
78757bf56e
Merge pull request #4328 from woodruffw/install-check-dev-tools
[WIP] formula_installer: Don't check devtools if pouring
2018-06-24 18:20:34 -07:00
Mike McQuaid
b87fc8c53a
Merge pull request #4369 from MikeMcQuaid/cache_store_mkpath
cache_store: create HOMEBREW_CACHE when needed.
2018-06-21 14:56:29 +01:00
Mike McQuaid
512073ad38 cache_store: create HOMEBREW_CACHE when needed.
Fixes #4366.
2018-06-21 13:59:07 +01:00
commitay
41e27928c4
Merge pull request #4232 from commitay/cask-caveats
cask fetch and upgrade: print caveats
2018-06-21 11:51:29 +10:00
Markus Reiter
1d1ca77fe9
Merge pull request #4356 from reitermarkus/brew-cask-search-docs
Update `search` docs.
2018-06-20 20:34:46 +02:00
Mike McQuaid
ca892f8e6c
Merge pull request #4360 from apjanke/remove-redundant-zsh-completion-exclusions
zsh completion: Remove redundant exclusion lists for single options
2018-06-20 08:39:51 +01:00
Andrew Janke
8fc38ce64f zsh completion: Remove redundant exclusion lists for single options 2018-06-20 01:09:40 -04:00
Markus Reiter
fcd75877c5 Update brew search help. 2018-06-19 13:48:23 +02:00
Markus Reiter
ccbbe6756f Remove brew cask search from documentation. 2018-06-19 13:40:25 +02:00
Markus Reiter
25542d7398
Merge pull request #4316 from reitermarkus/merge-search
Merge `brew cask search` into `brew search`.
2018-06-18 21:31:33 +02:00
Markus Reiter
c814199a79
Merge pull request #4320 from lucafavatella/brew-cask-doctor
Fix `brew cask doctor` for non-standard installation location
1.6.9
2018-06-18 16:30:23 +02:00
Markus Reiter
b265d870ed Allow searching Casks by name. 2018-06-18 16:23:36 +02:00
Markus Reiter
b21430b13c Use extend/os pattern. 2018-06-18 16:23:36 +02:00
Markus Reiter
18e46b3ec2 Fix usage of HOMEBREW_LOAD_PATH. 2018-06-18 16:23:35 +02:00
Markus Reiter
1d629c6978 Don’t show Casks on Linux. 2018-06-18 16:23:35 +02:00
Markus Reiter
a8bfe09c49 Remove tests for brew cask search. 2018-06-18 16:23:35 +02:00
Markus Reiter
8c620d8b97 Redirect brew cask search to brew search. 2018-06-18 16:23:35 +02:00
Markus Reiter
da193d2f7e Merge brew cask search into brew search. 2018-06-18 16:23:35 +02:00
Mike McQuaid
f7d0c89c21
Merge pull request #4348 from errordeveloper/master
Ignore any version of Go, when it is a dependency of a bottle
2018-06-18 14:56:14 +01:00
Mike McQuaid
5e6c40e28f Make versioned formulae regex more consistent.
Share the regex where possible and otherwise ensure they are identical.
2018-06-18 14:36:51 +01:00
Mike McQuaid
60e6b5114b
Merge pull request #4349 from apjanke/audit-head-only-error
brew audit: avoid error on head-only formulae
2018-06-18 13:51:59 +01:00
Vítor Galvão
9831e67452
Merge pull request #4346 from commitay/version-minor_patch
cask dsl versions: add minor_patch
2018-06-16 13:18:21 +01:00
Andrew Janke
97c12b4bbf brew audit: avoid error on head-only formulae 2018-06-15 20:07:02 -04:00
Ilya Dmitrichenko
22d88821c3
Ignore any version of Go, when it is a dependency of a bottle 2018-06-15 11:36:41 -07:00
commitay
c5bbf28dd6 cask dsl versions: add minor_patch 2018-06-15 22:40:33 +10:00
Markus Reiter
32fa773cf8
Merge pull request #4342 from reitermarkus/sudo-sorry-try-again
Fix `sudo` “Sorry, try again.” delay.
2018-06-15 14:08:08 +02:00
Markus Reiter
44f56a0773 Refactor join("") to join. 2018-06-15 13:56:08 +02:00
Markus Reiter
13d9305fad Cache Tty.width, since it is used heavily because of ohai. 2018-06-15 13:56:08 +02:00
Luca Favatella
ece34dbe26 cask doctor: fix for non-standard installation location in ~
Symptom (relevant portions):
```
$ brew cask doctor
==> Homebrew-Cask Version
Homebrew-Cask 1.6.7-56-g9ebcef7
Homebrew/homebrew-cask (git revision fc24e; last commit 2018-06-09)
==> macOS
10.13.5
==> SIP
Enabled
...
==> Homebrew-Cask Install Location
<NONE>
==> Homebrew-Cask Staging Location
~/homebrew/Caskroom
...
==> Environment Variables
HOMEBREW_CASK_OPTS="--appdir=~/Applications"
LC_ALL="en_US.UTF-8"
PATH="/usr/bin:/bin:/usr/sbin:/sbin:~/homebrew/Library/Homebrew/shims/scm"
SHELL="/bin/bash"
Cask's Doctor Checkup: failed
 - The staging path ~/homebrew/Caskroom does not exist.
Error: There are some problems with your setup.
```

Analysis:

* The source code is
  [this](9ebcef785e/Library/Homebrew/cask/lib/hbc/cli/doctor.rb (L63-L66)).

* The issue is reproducible in `brew irb`:

```
$ ls -dl ~/homebrew/Caskroom
drwxrwxr-x  10 luca  admin  340  9 Jun 16:22 /Users/luca/homebrew/Caskroom
$ ( cd ~ && pwd; )
/Users/luca
$ ls -dl /Users/luca/homebrew/Caskroom
drwxrwxr-x  10 luca  admin  340  9 Jun 16:22 /Users/luca/homebrew/Caskroom
$ brew irb
==> Interactive Homebrew Shell
Example commands available with: brew irb --examples
irb(main):001:0> Pathname.new("~/homebrew/Caskroom").exist?
=> false
irb(main):002:0> Pathname.new("/Users/luca/homebrew/Caskroom").exist?
=> true
```
2018-06-14 23:58:03 +01:00
Luca Favatella
cac30f6186 cask doctor: delete unused render_* methods 2018-06-14 23:56:35 +01:00
Markus Reiter
502b393d66 Fix tests. 2018-06-14 22:45:20 +02:00
Markus Reiter
b45996dada Don’t use ohai for SystemCommand output. 2018-06-14 22:45:20 +02:00
Mike McQuaid
9b21422b72
Merge pull request #4334 from mistydemeo/mojave_clt_headers
Mojave: require CLT header package
2018-06-14 09:13:25 +01:00
Mike McQuaid
c6b6b31d66
Merge pull request #4304 from apjanke/rspec-implies-non-formula-files
brew style: assume file args are non-formulae when passed --rspec
2018-06-14 09:11:42 +01:00
Misty De Meo
e5212d74a6 Diagnostic: require CLT headers on 10.14 2018-06-13 17:24:32 -07:00
Misty De Meo
95e3754b95 SystemConfig: print header status if appropriate 2018-06-13 17:24:32 -07:00
Misty De Meo
296f3c309e CLT: add checks for the header package 2018-06-13 17:24:32 -07:00