aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/config.rb
AgeCommit message (Collapse)Author
2017-02-12Add test to check if `rubocop-cask` version is is outdated.Markus Reiter
2017-02-12Use constants for RuboCop version.Markus Reiter
2016-09-17Move LinkedKegs migration.Mike McQuaid
Move the `LinkedKegs` migration into `utils.rb` so it can also be called from `brew.rb` on startup.
2016-09-17Always run LinkedKegs migration (if needed).Mike McQuaid
Ensure that `brew update` always runs the LinkedKegs migration if needed as it may not have been run by `brew update` if it was using `--preinstall` or a `git pull` etc. Also, if the old paths still exist: just use them instead. Finally, always try to unlink/unpin before link/pin. Fixes https://github.com/Homebrew/homebrew-core/issues/4918.
2016-09-16Move LinkedKegs/PinnedKegs/Locks from Library.Mike McQuaid
These don't make sense to be tied to the `HOMEBREW_REPOSITORY` but instead should live in the `HOMEBREW_PREFIX` as they all relate to its state.
2016-08-26Restrict TMPDIR etc. changes to install, post_install and testZhiming Wang
See discussion in Homebrew/brew#800.
2016-08-25Merge pull request #800 from zmwangx/set-TMPDIR-TEMP-TMP-to-HOMEBREW_TEMPMike McQuaid
config: set TMPDIR, TEMP and TMP to HOMEBREW_TEMP
2016-08-24Improve HOMEBREW_BREW_FILE unset failure case.Mike McQuaid
Print a better exception message and handle this in more cases rather than producing confusing errors when it’s unset.
2016-08-24config: set TMPDIR, TEMP and TMP to HOMEBREW_TEMPZhiming Wang
TMPDIR, TEMP and TMP (when set) are not whitelisted for writing in sandbox.rb, which could result in sandbox violations when programs attempt to write to these locations. Setting TMPDIR, TEMP and TMP to HOMEBREW_TEMP (which defaults to /tmp when not set) works around the aforementioned problem and also improves uniformity in the locations of tempfiles created during Homebrew operations. Caveat: Non-matching HOMEBREW_TEMP and TMPDIR could lead to undesirable side effects in certain cases, e.g., emacsclient not being able to find an existing server (whose socket lives in $TMPDIR/emacs$UID/) when launched through brew edit.
2016-07-15ENV: move to new paths. (#507)Mike McQuaid
Move some stuff formerly in `Library/ENV` around: - Move `Library/ENV/$XCODE_VERSION` to `Library/Homebrew/env/super` as they are all superenv wrappers and all symlinks to the same version. We never needed the "separate shims for separate versions" functionality and it just adds confusion. - Move `Library/ENV/pkgconfig` to `Library/Homebrew/env/pkgconfig` to get more things under `Library/Homebrew` - Move `Library/ENV/scm` to `Library/scm` as these wrappers are not actually used by or related to superenv (or stdenv) in any way.
2016-07-11add vendor-install commandXu Cheng
2016-07-05config: document previously undocumented constantsMartin Afanasjew
2016-07-05config: remove obsolete HOMEBREW_CONTRIB constantMartin Afanasjew
2016-06-08introduce global lock directory (#337)Xu Cheng
Since #292, HOMEBREW_CACHE was moved to a per-user directory. This makes it unsuitable to store global lock files on multiple users environment. Therefore, introducing a global lock directory `/Library/Lock.d` to store lock files from formula lockers as well as `brew update`.
2016-06-01Move HOMEBREW_CACHE to ~/Library/Caches (#292)Mike McQuaid
* cleanup: accept cache as an argument. * config: move default HOMEBREW_CACHE to ~/Library. * brew.1: document new default Homebrew cache. * update-report: migrate legacy Homebrew cache.
2016-03-21add HOMEBREW_ENV_PATH internal variableXu Cheng
`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.
2016-02-21HOMEBREW_LIBRARY_PATH: remove redundant /Homebrewilovezfs
The default HOMEBREW_LIBRARY_PATH should be /usr/local/Library/Homebrew not /usr/local/Library/Homebrew/Homebrew Closes Homebrew/homebrew#49384. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2016-02-06make HOMEBREW_BREW_FILE a Pathname objectXu Cheng
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>
2016-01-30config.rb: add comment explaining HOMEBREW_TEMP logicAndrew Janke
2016-01-27config: fail when HOMEBREW_BREW_FILE is unset.Mike McQuaid
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>
2016-01-17bin/brew: set more HOMEBREW_* env from Bash.Mike McQuaid
2015-08-06more core file style updated by rubocopXu Cheng
2015-08-03Core files style updates.BrewTestBot
Closes Homebrew/homebrew#42354. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-06-15Call expand_path on the value of HOMEBREW_CACHEJack Nagel
Fixes Homebrew/homebrew#40752.
2015-05-03Revert "Default HOMEBREW_TEMP to Dir.tmpdir"Jack Nagel
This reverts commit b95f27ce9f956c56d080b6dc29ba8efb841c6690.
2015-04-30Default HOMEBREW_TEMP to Dir.tmpdirJack Nagel
2015-04-29Let the test environment inject its own load pathJack Nagel
2015-04-29Extract runtime configuration from global.rbJack Nagel
This allows global.rb to be safely loaded in the test environment.