| Age | Commit message (Collapse) | Author |
|
|
|
`Library/ENV` like `Library/Homebrew` is part of Homebrew basecode. It
should be able to be accessed during the `brew tests`.
By adding HOMEBREW_ENV_PATH variable, we allow test suit to locate these
codes.
|
|
This means that internal command aliases can be used for Bash commands
(such as the new, Bash-based `brew update`).
Fixes Homebrew/homebrew#49182.
Closes Homebrew/homebrew#49184.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
|
|
Because `brew.rb` should never be invoked directly, remove executable
bit and shebang to make that more obvious.
Closes Homebrew/homebrew#48816.
Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
|
|
Currently HOMEBREW_BREW_FILE is a String, while other of HOMEBREW_*
variables are all Pathname. This commit unifies them all as Pathname,
so it will not cause any confusion.
Closes Homebrew/homebrew#48872.
Signed-off-by: Xu Cheng <xucheng@me.com>
|
|
Closes Homebrew/homebrew#48634.
Closes Homebrew/homebrew#48681.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
|
|
Not sure why this is happening (beyond the Chef cookbook stupidly
deciding to not call through `bin/brew`) but fail and print a scary
looking error to hope to point people in the right direction.
Closes Homebrew/homebrew#48261.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
|
|
`bin/brew` already sets up a bunch of environment variables. There's no
need to re-export them for external commands. (`HOMEBREW_LIBRARY_PATH`
and `HOMEBREW_CACHE` continue to be determined later in the Ruby code.)
|
|
Generated by `brew style --fix Library/brew.rb`
|
|
|
|
This is now handled by `bin/brew`
|
|
|
|
Before this, `sudo brew cask` will auto install Homebrew cask as root
user. This will cause permission problem for files in `Tap` directory.
Therefore, let's check process uid and switch to normal user for tap.
As result, `sudo brew cask` will work as the same before, except tap
files will have the correct permission attributes.
Closes Homebrew/homebrew#48059.
Signed-off-by: Xu Cheng <xucheng@me.com>
|
|
Also, print as a warning to STDERR and print a backtrace in debug mode.
Closes Homebrew/homebrew#47099.
Closes Homebrew/homebrew#47154.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
|
|
Make both `--version` and `-v` print the Homebrew version and exit, if
provided as first and sole argument. `brew --version` no longer accepts
additional arguments (they were previously ignored). Otherwise interpret
`brew -v <arguments>` as if `brew <arguments> -v` was executed instead
(no change here), but no longer print a line with the Homebrew version.
Closes Homebrew/homebrew#46790.
Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
|
|
So we can remove the formula installation from `brew.rb`.
Closes Homebrew/homebrew#46843.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
|
|
Otherwise it would assume if `cask` was tapped it was also installed.
|
|
Closes Homebrew/homebrew#45773.
Signed-off-by: Xu Cheng <xucheng@me.com>
|
|
|
|
`reinstall` can currently be executed under sudo and has every chunk of problems
running install under sudo does when `brew` isn't root owned.
Likewise with `postinstall` which we increasingly use to create directories and
move/install files elsewhere. Using sudo there both masks deeper issues and
makes uninstall troublesome.
Closes Homebrew/homebrew#45112.
Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
|
|
The xcrun code is stolen right out of the INSTALL script.
Check for user agreement of the Xcode license before permitting any other brew usage to continue.
This prevents the situation where people are instructed to "please re-run as root via sudo" on brew commands.
The check can only fail when Xcode is installed & the active developer dir.
Closes Homebrew/homebrew#44974.
Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
|
|
|
|
HOMEBREW_VERSION doesn't change very often; the repository state is more
interesting.
Closes Homebrew/homebrew#41886.
|
|
|
|
Closes Homebrew/homebrew#42354.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
|
|
Closes Homebrew/homebrew#42069.
Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
|
|
Closes Homebrew/homebrew#41034.
Signed-off-by: Xu Cheng <xucheng@me.com>
|
|
This is unnecessary here because we use it only once. The difference
won't be noticeable but the check is ~5 times faster now.
Closes Homebrew/homebrew#40901.
Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
|
|
Fixes Homebrew/homebrew#40778.
|
|
Issue a warning about Homebrew's very basic support for 10.11 at this point
in time on each run of `brew`.
Closes Homebrew/homebrew#40536.
Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
|
|
Is this really Misty?!
|
|
|
|
|
|
Don't match `help` at the end of every string because `brew installhelp`
shouldn't really be running help.
Closes Homebrew/homebrew#36559.
Closes Homebrew/homebrew#36576.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
|
|
Fixes comments made in:
https://github.com/Homebrew/homebrew/commit/91c267bdb1607334febaac3272ccc62ada6ae4fd#commitcomment-9146910.
|
|
|
|
These files do not contain any non-ASCII characters.
|
|
Closes Homebrew/homebrew#32615.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
|
|
This means that taps root and `cmd` directories are added to the PATH.
This should enable migration of some of our contributed commands into
taps (e.g. `homebrew-boneyard`) and make it easy for third parties to
be able to maintain these. It might also make stuff easier for existing
tools like e.g. `brew-cask` and `boxen`.
Closes Homebrew/homebrew#32471.
|
|
Fixes Homebrew/homebrew#30848.
|
|
|
|
|
|
Only display —-help for internal commands and not for external ones;
they can handle the flag themselves.
Closes Homebrew/homebrew#26675.
References Homebrew/homebrew#26755.
Closes Homebrew/homebrew#30300.
|
|
Closes Homebrew/homebrew#29795.
Closes Homebrew/homebrew#29819.
|
|
This fixes external commands that provide their own
help and version subcommands.
Closes Homebrew/homebrew#26755.
|
|
Fixes Homebrew/homebrew#28942.
|
|
|
|
|
|
|
|
|