15752 Commits

Author SHA1 Message Date
Andrew Janke
996825dd27 Split out rspec-specific Rubocop config to fix warning 2018-06-07 00:23:44 -04:00
William Woodruff
e78158a4f1
Merge pull request #4285 from woodruffw/ruby-macho-1.2.0
vendor: Update ruby-macho to 1.2.0
2018-06-06 10:48:56 -04:00
Mike McQuaid
9c1a988c32
Merge pull request #4290 from MikeMcQuaid/check-linkage
linkage_checker: fix cache invalidation.
2018-06-06 14:04:34 +01:00
Mike McQuaid
05568420c0 linkage_checker: fix cache invalidation.
Rather than using the name of the keg for the key use the full path.
This provides several advantages:

- there's no need to invalidate the cache on a `brew upgrade` or
  `brew switch`
- it's easier to figure out what cache entries can be removed and this
  can be done whenever a keg is removed by `brew uninstall` or
  `brew cleanup`.

Also, ensure that an `install` (or `reinstall`, `upgrade`) always
results in the cache being rebuilt for that keg (in case different
options were used).
2018-06-06 13:30:45 +01:00
Mike McQuaid
1cd86fc551
Merge pull request #4287 from apjanke/zsh-brew-cask-upgrade-completion
zsh completions: add brew cask upgrade
2018-06-06 09:12:32 +01:00
William Woodruff
4fdf47b2ca
vendor: Update README 2018-06-06 00:48:21 -04:00
Andrew Janke
b70d65c726 zsh completions: add brew cask upgrade 2018-06-06 00:32:08 -04:00
William Woodruff
99bf57d366
vendor: Update ruby-macho to 1.2.0
See https://github.com/Homebrew/homebrew-core/issues/28675.
2018-06-05 23:13:38 -04:00
Mike McQuaid
22e9fd7729
Merge pull request #4275 from DomT4/Mojave_DevTools_Updates
10.14: recognise Xcode 10.0 & add pkg-config files.
1.6.7
2018-06-05 09:11:29 +01:00
Dominyk Tiller
9640ef0540
mac: add 9.4 & 10.0 compilers 2018-06-05 06:48:26 +01:00
Dominyk Tiller
595c232866
xcode: recognise/expect Xcode 9.4 on 10.13 2018-06-05 06:46:32 +01:00
Dominyk Tiller
d1bd3fcf03
development_tools: update regex 2018-06-05 05:31:43 +01:00
Dominyk Tiller
b092f1d0a9
pkg-config: add initial files for 10.14 2018-06-05 05:31:43 +01:00
Dominyk Tiller
194c48e9d2
xcode: add initial support for Xcode 10.0 2018-06-05 05:31:40 +01:00
Misty De Meo
7d2530016a
Merge pull request #4274 from DomT4/new_macos
mac/version: add symbol for macOS Mojave
2018-06-04 18:24:49 -07:00
Dominyk Tiller
9391ac01a9
test: add symlink for macOS Mojave bottle 2018-06-04 19:48:16 +01:00
Dominyk Tiller
0c12ab5e83
mac/version: add symbol for macOS Mojave 2018-06-04 19:44:46 +01:00
Vítor Galvão
b088302e11
Merge pull request #4224 from vitorgalvao/fix-language-bug
HBC: Make language stanza order not matter
2018-06-04 00:55:45 +01:00
Mike McQuaid
06c01006c9
Merge pull request #4271 from GauthamGoli/create-args
create: Use Parser to parse args
2018-06-03 18:27:01 +01:00
Gautham Goli
e05f72bc52 create: Move FormulaCreator to formula_creator.rb 2018-06-03 17:10:05 +05:30
Mike McQuaid
1bcdab83c5
Merge pull request #4268 from GauthamGoli/linkage-args
linkage: Use Parser to parse args
2018-06-03 10:33:26 +01:00
Mike McQuaid
315502f505
Merge pull request #4269 from GauthamGoli/linkage-checker-fix
linkage: Fix `brew linkage --reverse`
2018-06-03 10:30:23 +01:00
Vítor Galvão
1d3e8c5550 Add test for locale.detect 2018-06-03 01:41:38 +01:00
Gautham Goli
f60751d91c create: Use Parser to parse args 2018-06-03 01:15:28 +05:30
Markus Reiter
6d22588cae
Merge pull request #4266 from reitermarkus/audit-spec-style
Fix code style in `audit` spec.
2018-06-02 21:27:39 +02:00
Gautham Goli
1caa0c0219 linkage: Fix brew linkage --reverse 2018-06-02 20:58:34 +05:30
Gautham Goli
39a6f7f83f linkage: Use Parser to parse args 2018-06-02 20:45:50 +05:30
ilovezfs
cd6c990919
Merge pull request #4267 from commitay/options-cop-formulae
options_cop: formula -> formulae
2018-06-02 01:10:32 -07:00
commitay
1a4340161c options_cop: formula -> formulae 2018-06-02 16:56:55 +10:00
Markus Reiter
d98c45b2d3 Fix code style in audit spec. 2018-06-02 03:46:55 +02:00
Mike McQuaid
ca919de13e
Merge pull request #4264 from MikeMcQuaid/more-runtime-dep-tweaks
Further tweak formula installer runtime dep handling
2018-06-01 22:05:58 +01:00
Mike McQuaid
9e2baa3bff Add additional runtime_dependency related tests. 2018-06-01 21:36:28 +01:00
Mike McQuaid
39a036b746
Merge pull request #4259 from GauthamGoli/fix-bump-args
cli_parser: Rename @bump_args to args
2018-06-01 20:47:39 +01:00
Mike McQuaid
4e03bbeefe
Merge pull request #4260 from sjackman/superenv-mac
superenv: Move macOS-specific files to shims/mac/
2018-06-01 20:46:59 +01:00
Mike McQuaid
1cbc78c5dd Further tweak formula installer runtime dep handling
Instead of adding a custom method to `Tab` use `Tab.runtime_deps_hash`
within `FormulaInstaller` to ensure the `runtime_dependencies` are in
the right format.
2018-06-01 20:39:39 +01:00
Mike McQuaid
2863a88499
Merge pull request #4263 from MikeMcQuaid/handle-bad-tab-runtime-dependencies
Fix bad formula/tab runtime_dependencies handling
2018-06-01 20:07:33 +01:00
Mike McQuaid
42e5ef9f89 tab: set runtime_dependencies consistently. 2018-06-01 19:53:26 +01:00
Mike McQuaid
6b817f775f Formula: handle bad tap runtime dependencies.
Also add some better exceptions for the cases that `nil`s end up
getting passed around incorrectly.
2018-06-01 19:22:33 +01:00
Shaun Jackman
a618681cf0 superenv: Move macOS-specific files to shims/mac/super/ 2018-06-01 09:53:26 -07:00
Mike McQuaid
a674a972a5
Merge pull request #4258 from MikeMcQuaid/update_head_version_path
Formula#update_head_version: fix PATH.
2018-06-01 16:59:39 +01:00
Gautham Goli
e21b7618a9 cli_parser: Rename @bump_args to args 2018-06-01 21:13:36 +05:30
Mike McQuaid
f24c77f3dd Formula#update_head_version: fix PATH.
Ensure that all the necessary tools are accessible.
2018-06-01 16:43:11 +01:00
Mike McQuaid
31112934b0
Merge pull request #4257 from MikeMcQuaid/required-recommended
runtime_dependencies: include recommended deps.
2018-06-01 16:38:55 +01:00
Mike McQuaid
63f8455ed3
Merge pull request #4255 from MikeMcQuaid/fix-cache
linkage_cache: cache input data and not results.
2018-06-01 16:38:44 +01:00
Gautham Goli
f5e5a81a7f
Merge pull request #4146 from GauthamGoli/global-args
cli: Store parsed args in Homebrew.args and access @args everywhere else
2018-06-01 20:01:26 +05:30
Mike McQuaid
e9a66bff14 Regenerate runtime_dependencies after installation
This ensures the we’re calculating we’ve run `fix_dynamic_linkage` so
that their results are consistent with what we’re actually pouring.

Combined with the linkage cache (which will be enabled by default in
future) this has very little performance overhead for consistently
Correct tab results.

As a result, don’t bother looking at opportunistically linked
dependencies when creating a tab by default but only do so after
installation has completed.

Finally, only output the caveats and summary after all these
operations have completed.
2018-06-01 14:05:16 +01:00
Mike McQuaid
61617a257e linkage_checker: use default use_cache parameter for callers. 2018-06-01 14:05:16 +01:00
Mike McQuaid
1a2c2f2e1b linkage_cache: cache input data and not results.
Cache all the non-weak dynamic library links for a keg rather than the
result of running `brew linkage`. This means that we correctly handle
changes to e.g. what non-keg files are present on disk.
2018-06-01 14:05:16 +01:00
Mike McQuaid
b66aafc218 runtime_dependencies: include recommended deps.
These previously weren't being generated correctly for dependencies of
formulae that weren't installed.
2018-06-01 14:01:34 +01:00
Markus Reiter
e6648af656
Merge pull request #4251 from reitermarkus/must-succeed
Moving and copying must succeed.
2018-06-01 14:17:21 +02:00