17921 Commits

Author SHA1 Message Date
Mike McQuaid
60c9472b14
rubocop_rspec: disable RSpec/FilePath.
We keep adding to the list of exceptions and this fails if it isn't run
in the right directory.
2020-05-05 15:50:10 +01:00
Mike McQuaid
316da98140
Merge pull request #7503 from Bo98/since-fix
os/mac/software_spec: fix argument error in valid  use case
2020-05-05 09:10:33 +01:00
Mike McQuaid
8e318d81bc
formula: add pkgetc method.
This should provide a more "type-safe" way of referring to the `etc`
directories of other formulae e.g.
https://github.com/Homebrew/homebrew-core/pull/54257 so that the output
will change if the formula name changes.
2020-05-05 08:34:07 +01:00
vidusheeamoli
f851688541 audit: Port audit_keg_only to rubocop and add tests
audit: add test

audit: fixed test

audit: added another test case

audit: fix test

audit: fix test

audit: fix keg only
2020-05-05 10:47:49 +05:30
Bo Anderson
16141e7eff os/mac/software_spec: fix argument error in valid use case 2020-05-04 17:16:39 +01:00
Mike McQuaid
e1f3b0b971
Merge pull request #7500 from MikeMcQuaid/deps_args_spec
deps_spec: check args.
2020-05-04 13:28:13 +01:00
Mike McQuaid
f567302ebf
deps_spec: check args. 2020-05-04 12:59:56 +01:00
Mike McQuaid
9324a85955
cli: readability improvements.
- Rename `cmdline_args` to `argv` to make it more obvious where they
  come from.
- Make the `if args_parsed` early return into `unless args_parsed` to
  (hopefully) make it clearer that this is not the "normal" case and
  to not check `argv` unless arguments haven't been parsed.
2020-05-04 12:42:29 +01:00
Mike McQuaid
ae353ff42e
Revert "ARGV: Deprecate ARGV.flags_only and replace with Homebrew.args.flags_only" 2020-05-04 11:12:25 +01:00
Maxim Belkin
fe45f68000
brew.sh: check versions of proper cURL and Git
User may specify which cURL and Git to use via
HOMEBREW_CURL_PATH and HOMEBREW_GIT_PATH.
So, let's use these to determine whether we need to use
their vendored alternatives.
2020-05-04 03:16:51 -05:00
dependabot-preview[bot]
417bdca22d
build(deps): bump rspec-core from 3.9.1 to 3.9.2 in /Library/Homebrew
Bumps [rspec-core](https://github.com/rspec/rspec-core) from 3.9.1 to 3.9.2.
- [Release notes](https://github.com/rspec/rspec-core/releases)
- [Changelog](https://github.com/rspec/rspec-core/blob/master/Changelog.md)
- [Commits](https://github.com/rspec/rspec-core/compare/v3.9.1...v3.9.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-04 05:59:23 +00:00
Gautham G
b40e33aeb8 ARGV: Deprecate ARGV.cc and replace with Homebrew.args.cc 2020-05-04 11:14:55 +05:30
Mike McQuaid
9e5932c214
Merge pull request #7485 from MikeMcQuaid/formula_cellar_check_plist
formula_cellar_checks: check plist.
2020-05-03 14:21:21 +01:00
Mike McQuaid
c5267f1c75
formula_cellar_checks: check plist.
Check plists so https://github.com/Homebrew/homebrew-services/issues/219 does not occur.
2020-05-03 13:59:08 +01:00
Gautham G
66ac96acde ARGV: Depercate ARGV.flags_only and replace with Homebrew.args.flags_only 2020-05-03 13:55:51 +05:30
Mike McQuaid
4019f62e61
Merge pull request #7483 from Bo98/std-cpu-flags
ENV/std: fix error when using older/no clang
2020-05-02 14:16:26 +01:00
Mike McQuaid
b2571d42eb
Merge pull request #7484 from MikeMcQuaid/cleanup-sandbox
Cleanup Sandbox code
2020-05-02 14:16:09 +01:00
Mike McQuaid
6123cdb767
Improve Homebrew Portable Ruby messaging
As-of https://github.com/Homebrew/homebrew-portable-ruby/pull/100 we've
removed ARM builds for Portable Ruby due to months of breakage.
Similarly, when we last bumped Portable Ruby the ARM build was much
delayed but, despite Homebrew/brew being completely unusable to anyone
using it on ARM in that case, no-one complained or filed issues.

Instead of attempting to maintain and update a Portable Ruby on niche
(Homebrew) platforms like ARM (or, in past/future PPC) improve the
messaging to provide users with a workaround.

Now we allow only a major/minor version match it should be pretty
doable for those users to install e.g. a prebuilt Ruby binary from a PPA
or built it from source if needed using `ruby-build` and `rbenv`.

The messaging could be improved further but we're somewhat limited by
`ruby.sh` and `vendor-install.sh` being separate. I'm tempted to combine
them (or at least have `vendor-install.sh` not be so generic as to not
be able to give Ruby-specific advice).
2020-05-02 13:53:45 +01:00
Mike McQuaid
40ec8e69cc
Cleanup Sandbox code
Remove unused code and methods.
2020-05-02 13:45:04 +01:00
Mike McQuaid
330f1c1c39
Merge pull request #7481 from GauthamGoli/argv-cleanup-24
ARGV: Deprecate ARGV.casks and replace with Homebrew.args.casks
2020-05-02 13:33:58 +01:00
Mike McQuaid
010663fb12
Merge pull request #7477 from runlevel5/ppc64le-patch-2
Update Hardware::CPU.oldest_family with ppc64
2020-05-02 13:33:39 +01:00
Bo Anderson
3717815ade ENV/std: fix error when using older/no clang
Fixes #7482.
2020-05-02 13:33:32 +01:00
Gautham G
38c24d134c ARGV: Deprecate ARGV.casks and replace with Homebrew.args.casks 2020-05-02 13:21:16 +05:30
Gautham G
f6abc6fe19 ARGV: Deprecate ARGV.formulae, replace with Homebrew.args.formulae 2020-05-01 22:50:59 +05:30
Mike McQuaid
7f69550e00
Merge pull request #7475 from Homebrew/dependabot/bundler/Library/Homebrew/rubocop-rspec-1.39.0
build(deps): bump rubocop-rspec from 1.38.1 to 1.39.0 in /Library/Homebrew
2020-05-01 16:02:45 +01:00
Trung Le
d6c80c8671 Update Hardware::CPU.oldest_family with ppc64 2020-05-01 23:21:28 +10:00
Mike McQuaid
e6dffdd006
Merge pull request #7458 from Bo98/uses_since
software_spec: add uses_from_macos since bound
2020-05-01 12:53:59 +01:00
Mike McQuaid
5c9d3a1c0e
brew vendor-gems: commit updates. 2020-05-01 12:53:03 +01:00
dependabot-preview[bot]
2d9229ffb4
build(deps): bump rubocop-rspec in /Library/Homebrew
Bumps [rubocop-rspec](https://github.com/rubocop-hq/rubocop-rspec) from 1.38.1 to 1.39.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.38.1...v1.39.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-01 10:45:14 +00:00
Mike McQuaid
cdae58f807
Merge pull request #7474 from Homebrew/dependabot/bundler/Library/Homebrew/net-http-persistent-4.0.0
build(deps): bump net-http-persistent from 3.1.0 to 4.0.0 in /Library/Homebrew
2020-05-01 08:47:35 +01:00
Mike McQuaid
a2d4114089
Merge pull request #7468 from runlevel5/support-gcc-10
Support GCC 10
2020-05-01 08:27:35 +01:00
dependabot-preview[bot]
3fd49aedbc
build(deps): bump net-http-persistent in /Library/Homebrew
Bumps [net-http-persistent](https://github.com/drbrain/net-http-persistent) from 3.1.0 to 4.0.0.
- [Release notes](https://github.com/drbrain/net-http-persistent/releases)
- [Changelog](https://github.com/drbrain/net-http-persistent/blob/master/History.txt)
- [Commits](https://github.com/drbrain/net-http-persistent/compare/v3.1.0...v4.0.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-01 02:52:20 +00:00
Trung Le
3de9fc91a7 update dynamic linkers 2020-05-01 02:09:14 +10:00
Mike McQuaid
566cec4b58
Merge pull request #7470 from MikeMcQuaid/clt-linux
os/linux: add MacOS::CLT.version.
2020-04-30 16:42:16 +01:00
Trung Le
378906862f Update cc shim 2020-05-01 01:31:57 +10:00
Trung Le
2315f342ed Add shims 2020-05-01 01:17:43 +10:00
Mike McQuaid
6aca5a6c6d
os/linux: add MacOS::CLT.version.
This allows formulae with this to be read on Linux.
2020-04-30 16:07:55 +01:00
Trung Le
420fcfca0e Support GCC 10 2020-05-01 00:59:08 +10:00
Mike McQuaid
a4eb7e73f4
Merge pull request #7466 from bubba/ghc8.8-rubocop-whitelist
rubocops/urls: whitelist ghc@8.8
2020-04-30 15:56:00 +01:00
Luke Lau
0500dd572c rubocops/urls: whitelist ghc@8.8 2020-04-30 15:05:14 +01:00
Trung Le
3df97b20d5 Add PowerPC64 CPU
Co-Authored-By: Mike McQuaid <mike@mikemcquaid.com>
2020-04-30 23:37:45 +10:00
dependabot-preview[bot]
5feffaccc7
build(deps): bump parser from 2.7.1.1 to 2.7.1.2 in /Library/Homebrew
Bumps [parser](https://github.com/whitequark/parser) from 2.7.1.1 to 2.7.1.2.
- [Release notes](https://github.com/whitequark/parser/releases)
- [Changelog](https://github.com/whitequark/parser/blob/master/CHANGELOG.md)
- [Commits](https://github.com/whitequark/parser/compare/v2.7.1.1...v2.7.1.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-04-30 05:38:51 +00:00
Mike McQuaid
e8a29a2d72
Merge pull request #7440 from FTLam11/FTLam11-#7432-add-json-option-to-brew-cask-outdated
Add JSON support for brew cask outdated, fixes #7432
2020-04-29 11:40:22 +01:00
Frank Lam
682914bf40
Improve readability of guard clause
Co-Authored-By: Mike McQuaid <mike@mikemcquaid.com>
2020-04-29 18:16:39 +08:00
Mike McQuaid
fdc5096e09
Merge pull request #7461 from herder/shell_detection
[fix] Improve shell detection in shellenv
2020-04-29 10:00:12 +01:00
Mike McQuaid
04a64bb724
formula: disable! deprecates before disable date.
This makes more sense to me; if we expect a formula will be disabled at
a given point in the future then we should deprecate it immediately.
2020-04-29 09:34:40 +01:00
Niklas Herder
2f4d4b8684
[fix] Improve shell detection in shellenv
$SHELL is set to only the binary name in some environments (e.g. fish, not /usr/bin/fish), causing detection of fish/csh/tsch to fail without this change.
2020-04-29 08:20:06 +02:00
Bo Anderson
eb303dd654 software_spec: add uses_from_macos since bound 2020-04-28 16:45:32 +01:00
Frank Lam
9a605a1dd6
Refactor Cask#outdated_info 2020-04-28 12:21:51 +08:00
Alexander Bayandin
cc799b1f31 dev-cmd/mirror: switch to Bintray wrapper 2020-04-27 23:17:25 +01:00