aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
AgeCommit message (Collapse)Author
2016-08-12oh1: Add a truncate optionShaun Jackman
2016-08-12gpg: simplify available checkDominyk Tiller
which_all already runs some checks to see if the file is a file & is executable. Our usage here inside `self.available?` is mostly a smoke test. Closes #676. Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
2016-08-12gpg: combine detection logicDominyk Tiller
2016-08-12test_gpg: add initial testsDominyk Tiller
2016-08-12gpg: add initial bare-bones wrapperDominyk Tiller
2016-08-12tests: add assertion to test_simple_valid_formulaAndrea Kao
2016-08-12tests: refactor FormulaTextTests in test_cmd_auditAndrea Kao
2016-08-12search: remove thread-unsafe Hash cache.Mike McQuaid
Doesn't appear to affect the speed of `brew search`. Fixes #415.
2016-08-12formula_versions: set/unset raise_deprecation_exceptions.Mike McQuaid
2016-08-12utils: check raise deprecation exceptions value.Mike McQuaid
2016-08-12global: add Homebrew.raise_deprecation_exceptionsMike McQuaid
2016-08-12update: add --force argument.Mike McQuaid
Add a `brew update --force` to side-step all of the clever optimisations we have to detect if an update is unnecessary. That means if those optimisations go wrong in future we can tell people just to run this single command. This would have been a useful workaround for the issue fixed in 985c672.
2016-08-12Merge pull request #699 from MikeMcQuaid/update-upstream-branchMike McQuaid
update.sh: prevent overwriting UPSTREAM_BRANCH.
2016-08-11os/mac: Update ruby-macho calls for compatibility with 0.2.5.William Woodruff
Closes #656. Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
2016-08-11vendor: Update vendored ruby-macho to 0.2.5.William Woodruff
2016-08-11update.sh: prevent overwriting UPSTREAM_BRANCH.Mike McQuaid
UPSTREAM_BRANCH was being used both as a loop variable name and name for the upstream branch for HOMEBREW_REPOSITORY. This meant that the variable names were overwritten which prevented update. Closes #693.
2016-08-11Revert "formula_versions: also silence stderr."Mike McQuaid
2016-08-11formula_versions: also silence stderr.Mike McQuaid
We already stop old formula versions printing stdout but this also stops them printing on stderr for e.g. old deprecation warnings.
2016-08-11update.sh: further tweak update fix.Mike McQuaid
2016-08-11update-test: check we end up at end commit.Mike McQuaid
This would have caught the bug fixed in 985c67.
2016-08-11update.sh: check upstream SHA prefetch not local.Mike McQuaid
Otherwise this can prevent taps from being updated as expected.
2016-08-11Update --fetch-HEAD documentationVlad Shablinsky
2016-08-10move shell_profile to compat/utils.rb & deprecateGreg Nisbet
2016-08-10tests for shell-specific diagnostic messageGreg Nisbet
2016-08-10Multi-shell diagnostic checkGreg Nisbet
2016-08-10Utils::Shell.shell_profile in formula_cellar_checksGreg Nisbet
2016-08-10resolve conflict in diagnostic.rbGreg Nisbet
2016-08-10Enable vendored Ruby 2.0.Mike McQuaid
2016-08-10os/mac/ruby_keg: improve error reportingMartin Afanasjew
A failure to change a dylib ID or install name would previously cause a rather cryptic error message, that didn't include the name of the file that caused the failure, unless `--debug` was specified. Make sure to output this information in all cases before re-raising the exception.
2016-08-10Ship Homebrew auto-update support.Mike McQuaid
Roll this out to everyone (not just developers) and document the environment variables used for configuration.
2016-08-10update.sh: all configurable HOMEBREW_AUTO_UPDATE_SECS.Mike McQuaid
2016-08-10Tweak HOMEBREW_NO_AUTO_UPDATE handling.Mike McQuaid
This can just live in `brew.sh` and then it doesn’t need repeated in all the other places.
2016-08-10update.sh: further speed up `brew update`.Mike McQuaid
Tweak the logic further to make the no-op case even faster. Before: ``` brew update 1.10s user 1.05s system 92% cpu 2.325 total brew update --preinstall 0.60s user 0.77s system 96% cpu 1.433 total ``` After: ``` brew update 0.60s user 0.34s system 83% cpu 1.132 total brew update --preinstall 0.29s user 0.24s system 62% cpu 0.860 total ``` These times are now fast enough to avoid any further special-casing for `--preinstall`, roll it out to users by default and not print a message unless we've actually found some updates.
2016-08-10xcode: update expected clang for macOS 10.12Dominyk Tiller
2016-08-10Improve formula not found handling (#96)Misty De Meo
2016-08-10formulary: fix to_rack for fully-scoped referencesMike McQuaid
Fixes the case where I have `mysql56` installed but do `brew uninstall foo/bar/mysql56` which isn't a valid formula. Fixes https://github.com/Homebrew/legacy-homebrew/issues/39883.
2016-08-10diagnostic: remove MacGPG2 checkDominyk Tiller
This hasn't been an issue for upstream stable releases for 3 years, since March 2013, and hasn't been an issue for pre-release versions for 4 years. That release, and indeed the latest modern GPGTools releases, support 10.6 and above so there's no reason to suspect people are actually encountering the old versions in the wild with enough regularity to merit this being a permanent part of our codebase any more. In the last two years Homebrew has seen one Issue where MacGPG2 was the problem, and that wasn't reproducible at the time (and still isn't), and the `doctor` check likely wasn't even raised there. There has only been one Issue where the MacGPG2 `doctor` check was raised in that two year period. I think it's fair to treat this as an user configuration outlier now rather than an issue we need to be constantly on guard for. Ref: Homebrew/legacy-homebrew@dfb171b Ref: Homebrew/legacy-homebrew#12238 Ref: Homebrew/legacy-homebrew@046498b
2016-08-09utils/analytics.sh: tweak output in debug modeMartin Afanasjew
Avoid some duplication (thereby also shortening line length) and put everything in a single string for output via `echo`.
2016-08-09update: suppress warning about missing FETCH_HEADMartin Afanasjew
Fixes #671.
2016-08-09formula_installer: report --HEAD/--devel usage.Mike McQuaid
2016-08-09analytics.rb: URL encode reported data.Mike McQuaid
2016-08-09analytics.*: use curl --data for readability.Mike McQuaid
2016-08-09analytics.*: output curl command in debug mode.Mike McQuaid
2016-08-09update: don't recheck taps checked in the last 1m.Mike McQuaid
This is less than ideal but it gets the time on my machine down from ~6s to ~2s when checking no taps. It still shows that we're doing way more in `update.sh` than we need to be doing but that's a future PR.
2016-08-09formula_installer: tweak dependent requirements.Mike McQuaid
If a requirement is for a dependent that's already installed and that dependency is not using a `default_formula` (which would have already been converted from a `Requirement` to `Dependency` at this stage) then we want to stop it killing the build.
2016-08-09formula_installer: prevent MaximumMacOSRequirement leakageDominyk Tiller
Read the discussion in https://github.com/Homebrew/homebrew-core/pull/3703. If you have a better idea, please file a competing PR. I'm sick to death of discussion. Closes #662. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2016-08-09test-bot: never auto-update.Mike McQuaid
2016-08-08tests: extend cmd/install integration testAndrea Kao
Closes #626. Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
2016-08-08tests: refactor installation, renaming of CoreTap formulaAndrea Kao
2016-08-08tests: check all our Bash code for syntax errorsMartin Afanasjew
Additionally include our bootstrap code in `brew.sh`, Bash utilities in `utils.sh` and `utils/*.sh`, `superenv` shims, and the Bash completion. Closes #654. Signed-off-by: Martin Afanasjew <martin@afanasjew.de>