10755 Commits

Author SHA1 Message Date
Mike McQuaid
99837fae47 update.sh: prevent overwriting UPSTREAM_BRANCH.
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-11 17:22:27 +01:00
Mike McQuaid
d7da1640ff Merge pull request #698 from Homebrew/revert-692-formula_versions_hide_stderr
Revert "formula_versions: also silence stderr."
2016-08-11 17:07:50 +01:00
Mike McQuaid
0a20ceddcc Revert "formula_versions: also silence stderr." 2016-08-11 17:07:31 +01:00
Mike McQuaid
44a80e693a Merge pull request #692 from MikeMcQuaid/formula_versions_hide_stderr
formula_versions: also silence stderr.
2016-08-11 14:27:28 +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
Mike McQuaid
080c4de957 Merge pull request #685 from vladshablinsky/update-man-fetch-head
Update --fetch-HEAD documentation
2016-08-11 08:52:48 +01:00
Vlad Shablinsky
7fa9c0e977 Update --fetch-HEAD documentation 2016-08-11 09:30:59 +02:00
Vlad Shablinsky
b7dc6ce7ee Update zsh-completion for --fetch-HEAD 2016-08-11 09:12:30 +02:00
Vlad Shablinsky
0e0342e18a Add --fetch-HEAD completions to bash 2016-08-11 08:53:06 +02:00
Greg Nisbet
dcc3377aa3 move shell_profile to compat/utils.rb & deprecate 2016-08-10 23:21:30 -07:00
Greg Nisbet
bf63c08d50 tests for shell-specific diagnostic message 2016-08-10 23:21:30 -07:00
Greg Nisbet
f0cc815d86 Multi-shell diagnostic check 2016-08-10 23:21:30 -07:00
Greg Nisbet
f1ce358551 Utils::Shell.shell_profile in formula_cellar_checks 2016-08-10 23:21:30 -07:00
Greg Nisbet
9a29a306cf resolve conflict in diagnostic.rb 2016-08-10 23:19:09 -07:00
Mike McQuaid
4eaa40ae1f Enable vendored Ruby 2.0. 2016-08-10 20:06:14 +01: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
b6f467b007 Ship Homebrew auto-update support.
Roll this out to everyone (not just developers) and document the
environment variables used for configuration.
2016-08-10 15:46:31 +01: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
Mike McQuaid
ffd71d02e1 Bottles.md: update documentation.
Fixes #672.
Fixes #673.
2016-08-10 08:38:26 +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
Martin Afanasjew
cd23c263ba Fix style inconsistencies in Bash completion (#660) 2016-08-08 22:53:33 +02: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
Mike McQuaid
c7ba1c65ca gitignore: fix portable-ruby stashing. 2016-08-08 21:41:55 +01: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