9204 Commits

Author SHA1 Message Date
Mike McQuaid
0a20ceddcc Revert "formula_versions: also silence stderr." 2016-08-11 17:07:31 +01:00
Mike McQuaid
0b8eab8dac formula_versions: also silence stderr.
We already stop old formula versions printing stdout but this also stops
them printing on stderr for e.g. old deprecation warnings.
2016-08-11 14:08:37 +01:00
Mike McQuaid
24b5db5367 update.sh: further tweak update fix. 2016-08-11 13:47:13 +01:00
Mike McQuaid
b9d5b11f32 update-test: check we end up at end commit.
This would have caught the bug fixed in 985c67.
2016-08-11 11:26:37 +01:00
Mike McQuaid
985c672bac update.sh: check upstream SHA prefetch not local.
Otherwise this can prevent taps from being updated as expected.
2016-08-11 10:59:35 +01:00
Vlad Shablinsky
7fa9c0e977 Update --fetch-HEAD documentation 2016-08-11 09:30:59 +02:00
Martin Afanasjew
06fe347de9 os/mac/ruby_keg: improve error reporting
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-10 17:56:46 +02:00
Mike McQuaid
0c6e307eef update.sh: all configurable HOMEBREW_AUTO_UPDATE_SECS. 2016-08-10 15:37:04 +01:00
Mike McQuaid
1a240cd52a Tweak HOMEBREW_NO_AUTO_UPDATE handling.
This can just live in `brew.sh` and then it doesn’t need repeated in
all the other places.
2016-08-10 15:37:04 +01:00
Mike McQuaid
11116c2467 update.sh: further speed up brew update.
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-10 15:37:04 +01:00
Dominyk Tiller
33912e218e
xcode: update expected clang for macOS 10.12 2016-08-10 13:54:19 +01:00
Misty De Meo
fdf55e77e1 Improve formula not found handling (#96) 2016-08-10 10:37:35 +01:00
Mike McQuaid
d0251c1abc formulary: fix to_rack for fully-scoped references
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-10 09:40:39 +01:00
Dominyk Tiller
fdcdcf7350 diagnostic: remove MacGPG2 check
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-10 08:16:09 +01:00
Martin Afanasjew
5f4111d24a utils/analytics.sh: tweak output in debug mode
Avoid some duplication (thereby also shortening line length) and put
everything in a single string for output via `echo`.
2016-08-09 21:24:39 +02:00
Martin Afanasjew
159b0eea35 update: suppress warning about missing FETCH_HEAD
Fixes #671.
2016-08-09 21:19:30 +02:00
Mike McQuaid
19920e18a1 formula_installer: report --HEAD/--devel usage. 2016-08-09 19:41:30 +01:00
Mike McQuaid
18e933016c analytics.rb: URL encode reported data. 2016-08-09 19:41:30 +01:00
Mike McQuaid
2e360112e4 analytics.*: use curl --data for readability. 2016-08-09 19:41:30 +01:00
Mike McQuaid
222b730415 analytics.*: output curl command in debug mode. 2016-08-09 19:41:30 +01:00
Mike McQuaid
2b8ea07979 update: don't recheck taps checked in the last 1m.
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-09 13:44:43 +01:00
Mike McQuaid
cc752e97f6 formula_installer: tweak dependent requirements.
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-09 09:59:05 +01:00
Dominyk Tiller
202e5f5332 formula_installer: prevent MaximumMacOSRequirement leakage
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-09 09:58:49 +01:00
Mike McQuaid
3f7adf214d test-bot: never auto-update. 2016-08-09 09:01:54 +01:00
Andrea Kao
8c0b72ac0d tests: extend cmd/install integration test
Closes #626.

Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
2016-08-08 22:44:36 +02:00
Andrea Kao
c8b0a55c09 tests: refactor installation, renaming of CoreTap formula 2016-08-08 22:44:36 +02:00
Martin Afanasjew
c016aedaab tests: check all our Bash code for syntax errors
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>
2016-08-08 16:00:13 +02:00
Martin Afanasjew
b75516425b utils/analytics.sh: fix style inconsistencies 2016-08-08 16:00:12 +02:00
Martin Afanasjew
2a943d0ad2 shims/sed: fix style inconsistencies 2016-08-08 16:00:12 +02:00
Martin Afanasjew
85c0b594ad shims/pod2man: fix style inconsistencies 2016-08-08 16:00:12 +02:00
Martin Afanasjew
8e180a85b8 shims/mig: fix style inconsistencies 2016-08-08 16:00:12 +02:00
Martin Afanasjew
10af1866af shims/make: fix style inconsistencies 2016-08-08 16:00:12 +02:00
Martin Afanasjew
672dc1bae2 shims/bsdmake: fix style inconsistencies 2016-08-08 16:00:12 +02:00
Martin Afanasjew
faf4bc819c shims/apr-1-config: fix style inconsistencies 2016-08-08 16:00:12 +02:00
Martin Afanasjew
4a7fc07430 shims/ant: fix style inconsistencies 2016-08-08 16:00:12 +02:00
Martin Afanasjew
3d862ef5e2 cmd/vendor-install.sh: fix style inconsistencies 2016-08-08 16:00:12 +02:00
Martin Afanasjew
1e9328c6e1 cmd/update.sh: fix style inconsistencies 2016-08-08 16:00:12 +02:00
Martin Afanasjew
79c49b3638 brew.sh: fix style inconsistencies 2016-08-08 16:00:12 +02:00
Mike McQuaid
850db4ebf4 search: fix repositories with formulae and casks.
e.g. Caskroom/homebrew-cask.

Thanks to UniqMartin for the fix.

Fixes #655.
2016-08-08 10:55:12 +01:00
Mike McQuaid
9d8c4e6279 tap: allow Homebrew developers to tap broken taps. 2016-08-08 10:55:02 +01:00
Mike McQuaid
3847db6026 formula_installer: better handle missing conflict.
Doesn't feel like a good reason to abort installation for users if the
formula author has specified a conflict that doesn't exist. Instead,
behave more like the `TapFormulaUnavailableError` but print a message
telling people to report to the formula authors.

Closes https://github.com/Homebrew/homebrew-versions/issues/1327
2016-08-08 10:54:48 +01:00
Mike McQuaid
c9fabf57a5 test_integration_cmds: non-OS X skip cask/services 2016-08-08 10:52:59 +01:00
Mike McQuaid
b7b89b9406 test/.rubocop.yml: fix check category. 2016-08-08 10:52:43 +01:00
Mike McQuaid
e011589635 Revert "test-bot: don't run cmd taps generic tests."
This reverts commit 24f7e671317dfe22f1d8e10426db2e9074674bc9.
2016-08-08 10:52:34 +01:00
Mike McQuaid
24f7e67131 test-bot: don't run cmd taps generic tests. 2016-08-08 10:06:46 +01:00
Andrea Kao
26fb38a739 tests: add cmd/test integration test 2016-08-08 08:50:30 +01:00
Steven Peters
a67c6f6ca2 bump-formula-pr: format documentation for --help. 2016-08-08 08:42:40 +01:00
Dominyk Tiller
e48a3a2642
audit: enforce include method placement
Closes #648.

Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
2016-08-08 00:05:32 +01:00
Dominyk Tiller
11a1c495f7
audit: enforce conflicts_with placement 2016-08-08 00:05:19 +01:00
Uladzislau Shablinski
b8ce1fe1b2 Update upgrade/outdated documentation (#650) 2016-08-06 22:08:35 +08:00