aboutsummaryrefslogtreecommitdiffstats
path: root/bin
AgeCommit message (Collapse)Author
2018-02-12Merge pull request #3090 from jcs/no_colorMike McQuaid
Tty: if NO_COLOR env var is present, disable color
2018-02-12Tty: if HOMEBREW_NO_COLOR env var is present, disable colorjoshua stein
bin/brew will recognize NO_COLOR variable and copy it to HOMEBREW_NO_COLOR
2018-02-12brew, diagnostic: tweak CI variable checks.Mike McQuaid
I've adjusted test-bot in: https://github.com/Homebrew/homebrew-test-bot/commit/603918939a58a8d6351177fe35f0193b79549dfa to set CI=1 for Jenkins to make future JENKINS_HOME checks unnecessary. The only `TRAVIS_*` variable we care about is `TRAVIS_SUDO` so whitelist that specifically rather than passing through loads of others.
2018-02-01update all_proxy and man pages #3751xiehuc
2018-01-30add ALL_PROXY for brewxiehuc
Signed-off-by: xiehuc <xiehuc@gmail.com>
2017-12-18Added no_proxy to filtered envIvars Berzinsh
2017-12-05Default environment filtering to on for all users.Mike McQuaid
2017-11-29Include SSH_AUTH_SOCK in filtered environmentDavid Christenson
Include SSH_AUTH_SOCK (if set) in the filtered environment to avoid SSH issues with git.
2017-11-29bin/brew: add lowercase variants.Mike McQuaid
2017-11-29Merge branch 'master' into masterMike McQuaid
2017-11-29Adding proxy variables to FILTERED_ENVBruno R. Barreyra
Fixes #3500
2017-11-29Whitelist `SUDO_ASKPASS` environment variable.Markus Reiter
2017-11-28Fix `Utils::Shell.parent`.Markus Reiter
2017-11-28bin/brew: whitelist http_proxy.Mike McQuaid
Fixes #3494.
2017-11-27bin/brew: whitelist JENKINS_* vars.Mike McQuaid
2017-11-27bin/brew: don't set empty, unfiltered variables.Mike McQuaid
Otherwise we unconditionally set e.g. `CI`, `TRAVIS`.
2017-11-27Merge pull request #3487 from MikeMcQuaid/dev-env-filteringMike McQuaid
Enable environment filtering for developers.
2017-11-27More environment filtering fixesMike McQuaid
- Make `brew pull` pass through Git environment variables - Whitelist all `TRAVIS_` variables.
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-18bin/brew: tweak CI whitelisting.Mike McQuaid
2017-11-18bin/brew: passthrough CI var.Mike McQuaid
2017-11-17bin/brew: no environment filtering on test-bot.Mike McQuaid
test-bot sets environment filtering itself.
2017-11-13environment filtering: pass through TRAVIS vars.Mike McQuaid
We use these internally so let's map them to `HOMEBREW_` variables.
2017-11-07bump-formula-pr: use GitHub vars under env filter.Mike McQuaid
Ensure that the various variables are passed through and reset correctly. If we end up doing this in a bunch of places we may add some helpers to simplify this.
2017-05-14bin/brew: don't set blank HOMEBREW_* variables.Mike McQuaid
When creating the necessary HOMEBREW_* variables ensure that they aren't set if their value would be empty.
2017-05-13More environment filtering tweaksMike McQuaid
- only document HOMEBREW_* variables in the manpage (although still read from all the original environment variables). - resort manpage environment variables in alphabetical order - check the original path for trailing slashes
2017-04-23brew: set Bintray variables.Mike McQuaid
These are set as `HOMEBREW_BINTRAY_*` and then used by the rest of `brew` as normal.
2017-04-23Fix and remove various TODOs.Mike McQuaid
Fix those that can be done so without tearing Homebrew to pieces and remove the comments for those that can never be done.
2017-04-21Fix `brew edit` with environment filtering.Mike McQuaid
For many people `brew edit` makes use of the `EDITOR` variable to pick a sensible editor. With environment filtering enabled unless this editor is found in the default system PATH it'll fall back to e.g. `vim`. Instead, ensure that we export the original, pre-filtering `PATH` as `HOMEBREW_PATH` and use that internally to locate the editor. In future this same approach will likely be used for requirements to be able to find tools, too, and for other variables which we want to expose to Homebrew itself but not other build tools. Note that `HOMEBREW_PATH` is the same as `PATH` when build filtering hasn't been enabled.
2017-02-26bin/brew: tweak variable names.Mike McQuaid
2017-02-23Tidy up the latest draftDoug Hazell
2017-02-23Update based on comments (without a mutex...)Doug Hazell
2017-02-23Update from commentsDoug Hazell
2017-02-19Mechanism to dynamically add HOMEBREW.* vars to 'env -i' command string in ↵Doug Hazell
'bin/brew'
2017-02-12Presumably the "env -I" was a typo for "env -i"Doug Hazell
Just sourcing brew.sh causes the "Example usage" msg due to lacking command args but changing the last line of your suggestion to: /bin/bash "$HOMEBREW_LIBRARY/Homebrew/brew.sh" "$@" worked. If all of the 'HOMEBREW.*' vars, that other parts of the system require, are only added in brew.sh then your suggestion is cleaner.
2017-01-16fixupDoug Hazell
2017-01-16Update with comments in the codeDoug Hazell
2016-08-24bin/brew: improve /usr/local/bin/brew handling.Mike McQuaid
If `/usr/local` is the prefix but not the repository (so bottles can be used) then running `/usr/local/bin/brew` works great but `$HOMEBREW_REPOSITORY/bin/brew` assumes the prefix is `$HOMEBREW_REPOSITORY`. This is a pain when doing work on the Homebrew repository and having e.g. `bin` in your `$PATH`. Improve this behaviour so `bin/brew` knows how to handle this situation.
2016-08-24bin/brew: split up brew file symlink check.Mike McQuaid
This will enable this code to be reused in a future commit and makes it more obvious what’s being done.
2016-08-24bin/brew: refactor HOMEBREW_PREFIX="/" logic.Mike McQuaid
The previous approach of trying to do it on one line was confusing.
2016-07-15brew.{rb,sh}: move to Library/Homebrew. (#506)Mike McQuaid
2016-06-29bin/brew: fix corner cases in prefix computationMartin Afanasjew
If `bin/brew` happens to be symlinked to `/brew`, `/bin/brew`, or some similar location or (worse yet) Homebrew is installed to `/`, then computation of the prefix and/or repository path could break down and result in an invalid or empty path. Closes Homebrew/homebrew-core#2430.
2016-06-29bin/brew: rename 'chdir' to 'quiet_cd'Martin Afanasjew
This is inspired by `quiet_system` with basically the same implication (suppress output), making the name a lot less confusing and avoiding a clash with the `chdir` function defined in `Library/brew.sh`.
2016-02-25bin/brew: unset POSIX mode.Mike McQuaid
We're using /bin/bash and not /bin/sh for a reason so don't allow users to override this (seen in Homebrew/homebrew#49514). Closes Homebrew/homebrew#49515.
2016-02-18brew: Make HOMEBREW_REPOSITORY different from prefix only when 'brew' is a ↵David Caldwell
symlink Closes Homebrew/homebrew#49261. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2016-02-18brew: Make HOMEBREW_LIBRARY based off of HOMEBREW_REPOSITORYDavid Caldwell
This makes the logic match the Ruby code from before it was moved here (see 390e327f55126f7ee9519bc6c03a0c0aa14f7168)
2016-02-18brew: Don't re-canonicalizeDavid Caldwell
HOMEBREW_BREW_FILE and BREW_FILE_DIRECTORY are already canonicalized.
2016-02-16bin/brew: move logic to Library.Mike McQuaid
`bin/brew` is getting a bit bloated and it's annoying to open all of `HOMEBREW_PREFIX` in your editor of choice and have it search through the `Cellar`. Let's instead keep the bare minimum in `bin/brew` and move the rest to `Library`. Closes Homebrew/homebrew#49185. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2016-02-15brew: remove `ln` from sudo command check list.Mike McQuaid
2016-02-15Move internal command aliases from Ruby to Bash.Mike McQuaid
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>