aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/brew.sh
AgeCommit message (Collapse)Author
2018-02-27brew.sh: HOMEBREW_DEVELOPERs can enable Ruby warnings.Mike McQuaid
It provides some useful helpers for when we're doing stupid things but it's not something we want around by default.
2018-02-26Handle a too old system Git on OS X 10.8 and belowMike McQuaid
Needed for GitHub since: https://github.com/blog/2507-weak-cryptographic-standards-removed
2018-02-20brew.sh: use system curl on Linux where possible.Mike McQuaid
Result of discussion in #3809.
2018-02-15Unifying Linux/Mac logic that sets HOMEBREW_CURLMaxim Belkin
2018-02-15Don't set HOMEBREW_MACOS_VERSION on non-mac systemsMaxim Belkin
2018-02-15brew.sh: changes from Linuxbrew (Linux fork)Maxim Belkin
These fixes do two things: - set HOMEBREW_MACOS_VERSION to 0 on non-HOMEBREW_MACOS machines - set HOMEBREW_CURL to Homebrew'd curl
2018-02-13Auto-update on `brew cask install/upgrade`.Markus Reiter
2018-01-26Always install Gems into bundler location.Mike McQuaid
2017-12-20brew.sh: Use shims/scm/git for HOMEBREW_VERSIONShaun Jackman
Move the use of git to determine HOMEBREW_VERSION below the definition of the function git.
2017-12-12Do not specify absolute paths to utilitiesShaun Jackman
Specifying an absolute path to utilities is no longer needed, since environment filtering uses a default PATH.
2017-12-11brew.sh: latest HOMEBREW_VERSION is 1.4.0Mike McQuaid
2017-12-10Merge pull request #3543 from MikeMcQuaid/remove-env-unsetsMike McQuaid
Remove some unset/checked environment checks
2017-12-08Remove some unset/checked environment checksMike McQuaid
These will be redundant once environment filtering is on by default in #3529.
2017-12-05Default environment filtering to on for all users.Mike McQuaid
2017-11-27Enable environment filtering for developers.Mike McQuaid
If folks have set `HOMEBREW_DEVELOPER` or run a `dev-cmd` then enable environment filtering by default for them.
2017-11-26Allow optionally using Homebrew's curlMike McQuaid
If `HOMEBREW_FORCE_BREWED_CURL` is set then allow it to be used instead of the system `curl`.
2017-11-07Use HOMEBREW_AUTO_UPDATE_CHECKED variable.Mike McQuaid
Rather than reusing `HOMEBREW_NO_AUTO_UPDATE` to indicate that we've already made a check. This allows `HOMEBREW_NO_AUTO_UPDATE` to be displayed properly by `brew config`.
2017-11-05brew.sh: cleanup some environment pollution.Mike McQuaid
2017-10-29Tweak use of with_envMike McQuaid
- Use it in more places where it saves code - Allow using symbolic keys for a cleaner interface - Use `HOMEBREW_GEM_*` instead of `GEM_OLD_*`
2017-09-22brew.sh: update no git repository message.Mike McQuaid
Clarify that this message doesn’t only trigger when there’s no Git repository but also when there’s no tags that `git describe` can use.
2017-09-16Tweaks for older Mac OS X versions.Mike McQuaid
- `brew update` should try to install `curl` before `git` on older versions of Mac OS X where it is needed for accessing modern SSL certificates. - We don't need an HTTP mirror for `git` because `curl` will already be installed before it is downloaded. - Don't recommend GCC on Mac OS X versions where it can't be built with the default system compiler. - Start using the Homebrew `curl` on Mac OS X versions where it is needed as soon as it is installed.
2017-07-25Merge pull request #2940 from kevinburke/move-brew-prefixMike McQuaid
Speed up brew --prefix
2017-07-25Speed up brew --prefixKevin Burke
Move --prefix, --cellar to the top of brew.sh. Timings on master: brew --prefix > /dev/null 0.05s user 0.03s system 46% cpu 0.165 total brew --prefix > /dev/null 0.05s user 0.04s system 63% cpu 0.131 total brew --prefix > /dev/null 0.04s user 0.03s system 72% cpu 0.104 total brew --prefix > /dev/null 0.04s user 0.03s system 87% cpu 0.080 total brew --prefix > /dev/null 0.04s user 0.03s system 81% cpu 0.080 total brew --prefix > /dev/null 0.04s user 0.03s system 84% cpu 0.075 total brew --prefix > /dev/null 0.04s user 0.03s system 83% cpu 0.080 total brew --prefix > /dev/null 0.04s user 0.02s system 84% cpu 0.072 total brew --prefix > /dev/null 0.04s user 0.03s system 86% cpu 0.072 total brew --prefix > /dev/null 0.04s user 0.03s system 82% cpu 0.075 total brew --prefix > /dev/null 0.04s user 0.03s system 85% cpu 0.072 total brew --prefix > /dev/null 0.04s user 0.03s system 84% cpu 0.076 total brew --prefix > /dev/null 0.04s user 0.03s system 85% cpu 0.074 total brew --prefix > /dev/null 0.03s user 0.03s system 83% cpu 0.073 total brew --prefix > /dev/null 0.04s user 0.02s system 83% cpu 0.072 total brew --prefix > /dev/null 0.03s user 0.03s system 86% cpu 0.068 total brew --prefix > /dev/null 0.04s user 0.03s system 82% cpu 0.080 total brew --prefix > /dev/null 0.04s user 0.03s system 84% cpu 0.079 total brew --prefix > /dev/null 0.04s user 0.02s system 83% cpu 0.070 total brew --prefix > /dev/null 0.03s user 0.03s system 84% cpu 0.072 total With the patch applied: brew --prefix > /dev/null 0.02s user 0.02s system 24% cpu 0.157 total brew --prefix > /dev/null 0.02s user 0.03s system 53% cpu 0.078 total brew --prefix > /dev/null 0.02s user 0.02s system 64% cpu 0.056 total brew --prefix > /dev/null 0.02s user 0.03s system 74% cpu 0.065 total brew --prefix > /dev/null 0.01s user 0.02s system 73% cpu 0.049 total brew --prefix > /dev/null 0.01s user 0.02s system 77% cpu 0.050 total brew --prefix > /dev/null 0.01s user 0.02s system 64% cpu 0.054 total brew --prefix > /dev/null 0.01s user 0.02s system 77% cpu 0.049 total brew --prefix > /dev/null 0.01s user 0.02s system 56% cpu 0.061 total brew --prefix > /dev/null 0.02s user 0.02s system 66% cpu 0.060 total brew --prefix > /dev/null 0.01s user 0.02s system 62% cpu 0.057 total brew --prefix > /dev/null 0.01s user 0.02s system 71% cpu 0.052 total brew --prefix > /dev/null 0.02s user 0.03s system 67% cpu 0.063 total brew --prefix > /dev/null 0.01s user 0.02s system 70% cpu 0.042 total brew --prefix > /dev/null 0.02s user 0.02s system 68% cpu 0.056 total brew --prefix > /dev/null 0.01s user 0.02s system 73% cpu 0.049 total brew --prefix > /dev/null 0.01s user 0.02s system 62% cpu 0.058 total brew --prefix > /dev/null 0.02s user 0.02s system 67% cpu 0.058 total brew --prefix > /dev/null 0.01s user 0.02s system 73% cpu 0.043 total brew --prefix > /dev/null 0.01s user 0.02s system 65% cpu 0.055 total
2017-07-24Follow the XDG Base Directory specification for caching on LinuxBob W. Hogg
Prefer $XDG_CACHE_HOME if defined, falling back to $HOME/.cache. The Mac cache location is not affected by this change. Signed-off-by: Bob W. Hogg <rwhogg@linux.com>
2017-07-13brew.sh: always use 7 chars for HOMEBREW_VERSION.Mike McQuaid
This avoids inconsistency based on Git versions.
2017-06-07analytics: remove unused analytics.Mike McQuaid
We didn't end up using the `screenview` and `exception` analytics as much as expected so let's remove them and focus on stuff that's formula-specific.
2017-05-23brew.sh: don't call xcode-select if it doesn't existMisty De Meo
2017-05-07Revert "Merge pull request #2603 from MikeMcQuaid/tweak-gem-vendoring"Mike McQuaid
This reverts commit 2372872974d1049c2beafe7dedb7f8f882502058, reversing changes made to 3e4547f52e7ebec633f8bfefc8a396d944edf908.
2017-05-07Tweak Gem vendoring.Mike McQuaid
If people have `HOMEBREW_RUBY_PATH` set then things explode in a rather confusing fashion. Instead, run `bundle` for them with the arguments that they'd want. Also, move `macho` requires into the module itself; it's a pain having to do everything for Bundler before requiring `pathname` which is a core Ruby class.
2017-05-03brew.sh: >v1.2.0 now.Mike McQuaid
2017-04-27brew.sh: tweak macOS user agent again.Mike McQuaid
Safari uses `Mac OS X` not `OS X`. To avoid contaminating other parts of Homebrew use a separate variable for just this part, too.
2017-04-26brew.sh: use OS X in user agent rather than macOS.Mike McQuaid
This matches what Safari does on macOS 10.12 and is generally what tools like Google Analytics expect the format to be.
2017-02-21brew uninstal alias for brew uninstallilovezfs
If `brew instal` is permissible, `brew uninstal` should be, too.
2017-01-16Unset GREP_OPTIONS.Mike McQuaid
Users may have this set, breaking grep's output. Fixes #1430.
2016-11-10Disallow running `brew cask` as `root`.Markus Reiter
2016-11-07brew.sh: bump hardcoded minor version.Mike McQuaid
2016-11-06brew.sh: disable running Homebrew as root.Mike McQuaid
November 1st 2016 has come and gone so it's time to disable this. Also, add comments explaining why the things that have been whitelisted have been (to avoid more being added without good justification).
2016-11-02brew.sh: communicate when autoupdate runs for longZhiming Wang
This will ease user anxiety when `brew install foo' is typed but nothing seems to happen.
2016-10-26Redirect stderr output from git (shim) invocations to /dev/null.William Woodruff
These invocations occur before we can actually automatically install git via bottle, and as such their output isn't relevant.
2016-10-18brew.sh: tweak xcode hint to auto-accept licenseMatt Tagg
Small improvement to the xcode license hint. Reduces friction by allowing user to accept the license in a single step. Reference: http://apple.stackexchange.com/questions/175069/how-to-accept-xcode-license
2016-10-12Fix warning for HOMEBREW_REPOSITORY at /usr/localRasPhilCo
2016-10-11brew.sh: warn on $HOMEBREW_REPOSITORY/CellarMike McQuaid
If you’re using a /usr/local prefix but e.g. /usr/local/homebrew/Cellar then you’ll miss out on most binary packages for no good reason so warn people of that.
2016-10-10Don't display root warning for --prefixAlex Kirk
2016-10-07brew.sh: improve user agent with no git repo.Mike McQuaid
`Homebrew/>1.0.0 (no git repository) (Macintosh; Intel macOS 10.7.5)...) reads pretty weirdly in a user agent and I've had complaints that `>` may be an invalid character in some cases.
2016-10-03Merge pull request #1190 from vladshablinsky/no-autoupdate-on-helpMike McQuaid
brew.sh: don't autoupdate if --help passed
2016-10-01brew.sh: don't autoupdate if --help passedUladzislau Shablinski
2016-10-01analytics: don't report commands run by HomebrewAlyssa Ross
Fixes #788.
2016-09-24brew.sh: change directory for HOMEBREW_VERSION.Mike McQuaid
This stops `-dirty` showing up whenever you aren't in `HOMEBREW_REPOSITORY`. Fixes #1108.
2016-09-22brew.sh: fix brew --version outside HOMEBREW_REPOSITORY.Mike McQuaid
2016-09-22Use git describe to get the HOMEBREW_VERSION.Mike McQuaid
For tagged commits produces the output: - `1.0.1` For untagged commits with a dirty tree produces the output: - `1.0.1-19-g23efbc5-dirty` Performance: ``` git describe --tags --dirty 2> /dev/null 0.07s user 0.01s system 96% cpu 0.086 total ``` This means we can tag any commit without needing to manually remember to bump the revision every time.