38364 Commits

Author SHA1 Message Date
Bo Anderson
fba5a874fc os/mac/hardware: use Westmere on >= Ventura 2023-12-23 04:58:53 +00:00
Bo Anderson
3798cacc40
Merge pull request #16388 from Bo98/fast-xcode-version
os/mac/xcode: add fast path for Xcode version detection
2023-12-23 03:09:16 +00:00
Eric Knibbe
09b7a7bceb
docs: mention standard argument methods 2023-12-22 21:44:42 -05:00
Patrick Linnane
8537849f83
Merge pull request #16387 from Homebrew/sponsors-maintainers-man-completions
Update sponsors.
2023-12-22 18:41:32 -08:00
Bo Anderson
cee50fcbca workflows/tests: add style caching 2023-12-23 01:33:34 +00:00
Bo Anderson
61a73014d3 os/mac/xcode: support Xcode 15.1 2023-12-23 00:55:50 +00:00
Bo Anderson
04ad24efe8 os/mac/xcode: add fast path for Xcode version detection 2023-12-23 00:49:36 +00:00
BrewTestBot
f9ca6a06e4
Update sponsors.
Autogenerated by the [sponsors-maintainers-man-completions](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/sponsors-maintainers-man-completions.yml) workflow.
2023-12-23 00:05:49 +00:00
Kevin
2cbe3886e0
Merge pull request #16386 from apainintheneck/limit-config-tap-info-output
cmd/config: limit tap info output
2023-12-22 11:46:12 -08:00
apainintheneck
857ab132a2 cmd/config: limit tap info output
We really only need to see info that is surprising or out of the norm.
For that reason, we can skip showing the tap remote and the tap branch
if they are what we expect them to be.
2023-12-22 10:39:29 -08:00
Mike McQuaid
0b804d4ab0
Merge pull request #16384 from apainintheneck/fix-cask-all
Fix Cask::Cask.all bug
2023-12-22 08:52:01 +00:00
Mike McQuaid
c6fbebdb50
Merge pull request #16385 from apainintheneck/add-core-cask-tap-to-config-output
cmd/config: Add core cask tap to output
2023-12-22 08:49:47 +00:00
apainintheneck
536b37c766 cmd/config: Add core cask tap to output
This information is occasionally useful when debugging so we should
include it by default to make our lives easier.
2023-12-21 22:54:38 -08:00
apainintheneck
b79778229c Resolve Cask::Cask.all todo
Now it takes the :eval_all parameter that means we can remove
ARGV handling inside Cask::Cask.all.
2023-12-21 21:55:16 -08:00
apainintheneck
5a674c232f Fix Cask::Cask.all bug
We were only loading casks from files with this command which,
of course, didn't work for casks that can only be loaded from
the API (when the core cask tap is not tapped). This changes
things to align more with what we do for formulae.
2023-12-21 21:39:58 -08:00
Mike McQuaid
d1625b6e3d
Merge pull request #16380 from cho-m/cpuid-in-static-lib 2023-12-22 01:12:26 +00:00
Issy Long
fb124f92ed
Ignore non-zap trash methods 2023-12-22 00:41:56 +00:00
Issy Long
b9f13fc35d
Better detection and replacement of non-alphabetized arrays
- Use `sort_by` to sort the array, rather than comparing each element
  to the next.
- This doesn't error with complaints about clobbering at all when run on
  `homebrew/cask`, hurray. And it also handles interpolations correctly,
  rather than ignoring them.

Co-authored-by: Bevan Kay <email@bevankay.me>
2023-12-22 00:26:38 +00:00
Issy Long
f34accfcde
Make the test expect_offense calls consistent with other tests 2023-12-22 00:20:02 +00:00
Issy Long
f4754baa00
Ignore zap trash stanzas with interpolation
- Interpolating the version into a path is a common pattern, but the interpolations
  trip up the alphabetization autocorrect quite spectacularly, so let's
  ignore them (for now?).
2023-12-22 00:19:03 +00:00
Michael Cho
53accccfb2
formula_cellar_checks: detect cpuid in static libs 2023-12-21 12:08:18 -05:00
Mike McQuaid
4a8d9ce246
Merge pull request #16379 from Homebrew/SMillerDev-patch-1
feat: add "no public presence" as cask rejection reason
2023-12-21 14:56:41 +00:00
Sean Molenaar
86e31d07d8
feat: add "no public presence" as cask rejection reason 2023-12-21 15:35:55 +01:00
Mike McQuaid
f093c27a17
Merge pull request #16376 from MikeMcQuaid/cask_on_system_conditionals_fix
rubocops/cask/on_system_conditionals: allow blocks.
2023-12-21 10:12:00 +00:00
Mike McQuaid
9679b49840
Merge pull request #16375 from MikeMcQuaid/vscode_settings_shellcheck
vscode/settings: update shellcheck.
2023-12-21 10:10:22 +00:00
Mike McQuaid
82edf71cf6
Merge pull request #16368 from Kentzo/prefer_sudo_as_root
sudo: Prioritize sudo_as_root over HOMEBREW_SUDO_THROUGH_SUDO_USER.
2023-12-21 10:08:25 +00:00
Mike McQuaid
a21b2dc833
rubocops/cask/on_system_conditionals: allow blocks.
Without this, there's an infinite loop on `brew style --fix` if you have
a `if Hardware::CPU.arm?` in a `postflight` block where it will change
back and forward between `if` and `on_os` syntax forever.
2023-12-21 10:00:46 +00:00
Mike McQuaid
857fe1a1e3
vscode/settings: update shellcheck.
VSCode keeps trying to change this file so: let's let it.
2023-12-21 09:59:43 +00:00
Ilya Kulakov
5f7db2b732
Fix syntax errors.
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
2023-12-21 01:16:09 -08:00
Issy Long
73b3ace77c
Apparently N is alphabetically before c; downcase the comparison 2023-12-21 01:25:18 +00:00
Carlo Cabrera
2926f26e24
Merge pull request #16373 from Homebrew/sorbet-files-update
sorbet: Update RBI files.
2023-12-21 08:39:02 +08:00
BrewTestBot
f614442d89
sorbet: Update RBI files.
Autogenerated by the [sorbet](https://github.com/Homebrew/brew/blob/master/.github/workflows/sorbet.yml) workflow.
2023-12-21 00:25:44 +00:00
Patrick Linnane
075e9775db
Merge pull request #16372 from Homebrew/cask_uninstall_signal
cask/artifact/abstract_uninstall: handle signal failures.
2023-12-20 11:59:10 -08:00
Mike McQuaid
228b1d62ed
cask/artifact/abstract_uninstall: handle signal failures.
If the process is running as another user: this will always fail.
2023-12-20 19:43:46 +00:00
Ilya Kulakov
4783c5b9fe Fix syntax errors. 2023-12-20 10:05:43 -08:00
Ilya Kulakov
9b672b0e45 sudo: sudo_as_root should apply on top of HOMEBREW_SUDO_THROUGH_SUDO_USER
System commands run with sudo_as_root must be run as  regardless of who is running sudo.
2023-12-20 09:39:10 -08:00
Ilya Kulakov
f71189ae4d Revert "sudo: Prioritize sudo_as_root over HOMEBREW_SUDO_THROUGH_SUDO_USER."
This reverts commit 907da26e335b84c29b159d082fdc6ee23fcfba69.
2023-12-20 09:36:46 -08:00
Mike McQuaid
dde0411e02
Merge pull request #16369 from cho-m/std_configure_args-prefix
formula: allow changing `std_configure_args` prefix
2023-12-20 16:12:36 +00:00
Mike McQuaid
dbc2546218
Merge pull request #16370 from cho-m/audit-unconfirmed-checksum
formula_auditor: split out checksum check
2023-12-20 16:02:08 +00:00
Michael Cho
3e428f7676
formula_auditor: split out checksum check 2023-12-20 10:22:26 -05:00
Michael Cho
2b58d9d9a1
formula: allow changing std_configure_args prefix 2023-12-20 10:08:27 -05:00
Mike McQuaid
4d93a50ad6
Merge pull request #16364 from cho-m/pybuild-rubocopy
rubocops/lines: consistency with single non-runtime Python
2023-12-20 11:57:17 +00:00
Ilya Kulakov
907da26e33 sudo: Prioritize sudo_as_root over HOMEBREW_SUDO_THROUGH_SUDO_USER. 2023-12-19 22:39:44 -08:00
Rylan Polster
f61ef4be2f
Merge pull request #16351 from Rylan12/rubocop-for-cask-discontinued
Create rubocop requiring `deprecate!` over `discontinued` for casks
2023-12-19 21:00:58 -05:00
Rylan Polster
841a0623c6
Don't have a comment saying to remove this cop 2023-12-19 20:47:20 -05:00
Rylan Polster
67598ce2c9
Merge pull request #16354 from Rylan12/docs-deprecate-disable-cask
Add `deprecate!` and `disable!` to cask docs
2023-12-19 20:39:45 -05:00
Michael Cho
326774faee
utils/pypi: use python from formula
Sometimes the Python dependency tree will be impacted by the exact
version of Python being used (most commonly relating to functionality
provided/missing from stdlibs like `importlib-metadata` and `tomllib`)
2023-12-19 20:09:09 -05:00
Issy Long
8cf58e36e6
Add a new RuboCop for alphabetizing zap trash array elements
- Part of issue 16323.
- Previously this was being done manually by Cask maintainers.
- While we're here, enforce that the `zap trash` path is not in `[]` if
  it only contains a single element.
- This is buggy on actual Casks, hence the draft PR.
2023-12-19 23:42:08 +00:00
Michael Cho
61b512c72c
rubocops/lines: consistency with single non-runtime Python 2023-12-19 15:20:45 -05:00
Mike McQuaid
23ce2d5bf8
Merge pull request #16362 from Homebrew/dependabot/bundler/Library/Homebrew/tapioca-0.11.14
build(deps-dev): bump tapioca from 0.11.13 to 0.11.14 in /Library/Homebrew
2023-12-19 18:05:34 +00:00