15935 Commits

Author SHA1 Message Date
Mike McQuaid
5a95d80b5e
cmd/install: fix --keep-tmp description. 2019-01-29 08:29:39 +00:00
Markus Reiter
a198b0ef43
Merge pull request #5628 from reitermarkus/conflicts-with
Refactor `ConflictsWith` to be a `DelegateClass(Hash)`.
2019-01-28 22:31:08 +01:00
Mike McQuaid
d18bab042b
Merge pull request #5639 from MikeMcQuaid/os-mac-cpu-requires
version: add CPU tests.
2019-01-28 20:02:19 +00:00
Mike McQuaid
28fa8a7c97
version: add CPU tests.
Add a new API inspired by discussion in
https://github.com/Homebrew/homebrew-core/pull/36435 to query if a given
CPU option is supported by a version of macOS.
2019-01-28 19:31:21 +00:00
Mike McQuaid
d5adf87cf4
cleanup: better handle edge cases.
- don't complain about "skipping" kegs when `brew cleanup` runs
  automatically
- better handle orphaned directories
- output a better error message when a keg cannot be removed

Fixes #4989
Fixes #5627
Fixes https://github.com/Homebrew/homebrew-core/pull/35958#issuecomment-458031634
2019-01-28 16:08:23 +00:00
Mike McQuaid
5866c2b00a
Merge pull request #5635 from Homebrew/dependabot/bundler/Library/Homebrew/vendor/rubocop-rspec-1.32.0
Bump rubocop-rspec from 1.31.0 to 1.32.0 in /Library/Homebrew/vendor
2019-01-28 14:40:28 +00:00
Mike McQuaid
d284090a62
brew vendor-gems: commit updates. 2019-01-28 14:03:51 +00:00
Claudia
c2bbd9df7e
Remove unneeded curl_openssl_or_deps invocation
This fixes a regression introduced in #5626 [1], which removed `curl_openssl_or_deps` and left a single call in the code.

[1]: https://github.com/Homebrew/brew/pull/5626
2019-01-28 08:10:37 +01:00
dependabot[bot]
a2b4ea08b3
Bump rubocop-rspec from 1.31.0 to 1.32.0 in /Library/Homebrew/vendor
Bumps [rubocop-rspec](https://github.com/rubocop-hq/rubocop-rspec) from 1.31.0 to 1.32.0.
- [Release notes](https://github.com/rubocop-hq/rubocop-rspec/releases)
- [Changelog](https://github.com/rubocop-hq/rubocop-rspec/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rubocop-hq/rubocop-rspec/compare/v1.31.0...v1.32.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-01-28 05:25:08 +00:00
Markus Reiter
d22c2eca9e Refactor ConflictsWith to be a DelegateClass(Hash). 2019-01-27 21:48:12 +01:00
Mike McQuaid
76b3c3dbe2
Merge pull request #5626 from MikeMcQuaid/audit-no-http
audit: no longer need openssl/curl HTTP mirrors.
2019-01-27 20:36:18 +00:00
Markus Reiter
d0202f692f
Merge pull request #5597 from cmbernard333/feature/homebrew-cask-json-error
Added missing method to_a to Cask::DSL:ConflictsWith class.
2019-01-27 19:03:28 +01:00
Mike McQuaid
efd69b16ed
audit: no longer need openssl/curl HTTP mirrors.
Mavericks' `curl` can download these fine over HTTPS.
2019-01-27 16:25:40 +00:00
Mike McQuaid
ede58e8dc7
Merge pull request #5624 from MikeMcQuaid/mavericks-portable-ruby
vendor-install: use Mavericks portable Ruby.
2019-01-27 14:02:10 +00:00
Mike McQuaid
5084831a2b
vendor-install: use Mavericks portable Ruby.
This is not universal so is smaller (8MB vs 12MB). It also performs
5-10% faster at:
https://rubybench.org/ruby/ruby/releases?result_type=array_sample_100k___50k
2019-01-27 13:24:40 +00:00
Gautham Goli
b40579f69a
install: Use CLI::Parser to parse args 2019-01-27 18:24:33 +05:30
Mike McQuaid
1aa8ad09e2
Deprecate macOS versions below Mavericks
And remove all dead/unneeded code.
2019-01-27 12:27:47 +00:00
Mike McQuaid
9b5ab7fbb7
Merge pull request #5598 from MikeMcQuaid/odeprecated-odisabled
Update deprecations and cleanup
2019-01-27 12:13:26 +00:00
Zach Auten
abb81a52e6 Updated PR in response to suggestions
- changed require_relative to require
    - removed useless begin
    - removed unnecessary test
    - updated brew info positive test case to verify a cask was found
    - moved cask search logic to missing_formula.rb
2019-01-26 22:03:41 -05:00
Christian Bernard
97ca5932cf Updated Cask::Cask#to_h to call Conflicts#to_h instead of to_a. Updated ConflictsWith#to_h to iterate over VALID_KEYS. 2019-01-26 10:15:45 -07:00
Michka Popoff
b24e96e28d diagnostic: ignore case in origin comparison
On circle-ci we do:
git remote set-url origin $CIRCLE_REPOSITORY_URL

which is defined as: https://github.com/linuxbrew/homebrew-core

This is being compared to:
https://github.com/Linuxbrew/homebrew-core
2019-01-26 16:10:06 +01:00
Mike McQuaid
0670282908
Merge pull request #5613 from MikeMcQuaid/cask-link-formula-name
formula_installer: skip linking formulae with already installed casks.
2019-01-26 08:43:22 +00:00
Mike McQuaid
ea1cf52d47
Merge pull request #5614 from MikeMcQuaid/bitdefender
os/mac/diagnostic: detect Bitdefender.
2019-01-26 08:43:09 +00:00
Mike McQuaid
7655022798
Merge pull request #5616 from lembacon/virtualenv-16.3.0
python_virtualenv_constants: upgrade virtualenv to 16.3.0
2019-01-26 08:41:57 +00:00
Chongyu Zhu
80d8d441a2
python_virtualenv_constants: upgrade virtualenv to 16.3.0 2019-01-26 14:26:35 +08:00
Shaun Jackman
d13a287954 Fix check_coretap_git_origin
check_coretap_git_origin was not working as intended.
Permit Linuxbrew/homebrew-core as a valid origin.
Factor out check_coretap_git_branch.
2019-01-25 14:01:10 -08:00
Mike McQuaid
ce9856efca
os/mac/diagnostic: detect Bitdefender.
This has caused us multiple hard-to-diagnose issues so let's complain
about it in `brew doctor`.
2019-01-25 20:16:35 +00:00
Mike McQuaid
6f184ea0dd
formula_installer: skip linking formulae with already installed casks.
If you have the `emacs` or `docker` formulae and casks both
installed the formula will fail to link. Skip trying to link the formula
if the cask is already installed.

Fixes https://github.com/Homebrew/homebrew-core/issues/36310.
2019-01-25 20:10:02 +00:00
Mike McQuaid
2cc50864cc
Merge pull request #5606 from treese/fix-set-min-version
Fix regexp to allow multiple digits in Mac OS minor version.
2019-01-25 15:18:29 +00:00
Christian Bernard
cadb193e3b Update to convert pairs to hash k=>v during to_a in Cask::DSL::ConflictsWith#to_a 2019-01-25 08:05:13 -07:00
Win Treese
04cb8f2a78 Fix regexp to allow multiple digits in Mac OS minor version.
The regular expression check for the -mmacosx-version-min value only
looked at a single digit in the minor version number, so it did not
compare correctly if the option was setting the minimum version
to (say) 10.11.
2019-01-24 16:30:00 -05:00
Mike McQuaid
382e0ed7b4
azure-pipelines-yml: early exit on errors.
We don't want to silently ignore failing commands.

Also, while we're editing the `tap-new` generated `azure-pipelines.yml`
also add the changes missed here from #5600.
2019-01-24 20:45:00 +00:00
Mike McQuaid
40bfc39912
Merge pull request #5601 from vitorgalvao/cask-cleanup-man
Removed cleanup from cask manpage
2019-01-24 12:45:04 +00:00
Mike McQuaid
c1d5a601c7
Merge pull request #5595 from vitorgalvao/CaskSha256MismatchError-link-to-fix
CaskSha256MismatchError: link to fix
2019-01-24 12:44:48 +00:00
Mike McQuaid
2dce15e9e2
Merge pull request #5590 from GauthamGoli/search-args-docs
search: Add descriptions to option declarations
2019-01-24 12:44:37 +00:00
Mike McQuaid
51f3dd315b
Merge pull request #5589 from GauthamGoli/gist-logs-args
gits-logs: Use CLI::Parser to parse args
2019-01-24 12:44:28 +00:00
Mike McQuaid
b4d02d0e2b
Merge pull request #5587 from GauthamGoli/deps-args
deps: Use CLI::Parser to parse args
2019-01-24 12:44:14 +00:00
Vítor Galvão
44e998a59b Removed cleanup from cask manpage 2019-01-24 00:37:56 +00:00
Mike McQuaid
eed1444d61
Update deprecations and cleanup
- Move `odeprecated` to `odisabled`
- Remove `odisabled`
- Enable automatic cleanup on install/reinstall/upgrade.
2019-01-23 21:57:40 +00:00
Christian Bernard
57fd624d25 Fix style issues based on brew style guide 2019-01-23 12:21:15 -07:00
Mike McQuaid
b221a46af2
Merge pull request #5593 from MikeMcQuaid/missing-env-var-exception
brew.rb: duplicate MissingEnvironmentVariables exception.
2019-01-23 19:10:54 +00:00
Vítor Galvão
ffe4c6bcef CaskSha256MismatchError: link to fix 2019-01-23 18:57:19 +00:00
Christian Bernard
e722a906f4 Added missing method to_a to Cask::DSL:ConflictsWith class. 2019-01-23 11:45:19 -07:00
Mike McQuaid
02a70496b6
style: better handle file arguments.
Fixes #5588.
2019-01-23 15:46:03 +00:00
Mike McQuaid
57d7d4c9dd
brew.rb: duplicate MissingEnvironmentVariables exception.
Fixes #5592.
2019-01-23 15:40:44 +00:00
Mike McQuaid
e43d400fd2
gist-logs: add missing install require.
Fixes #5586
2019-01-23 08:37:28 +00:00
Gautham Goli
e2e4f93f06
search: Add descriptions to option declarations 2019-01-23 10:14:31 +05:30
Gautham Goli
382b5447d8
gits-logs: Use CLI::Parser to parse args 2019-01-23 09:20:49 +05:30
Gautham Goli
7b6d1f774d
deps: Use CLI::Parser to parse args 2019-01-23 08:34:24 +05:30
Mike McQuaid
550202d005
Merge pull request #5584 from MikeMcQuaid/svn-remote-mojave
utils: fix SVN remote test on Mojave.
2019-01-22 18:35:07 +00:00