27089 Commits

Author SHA1 Message Date
Mike McQuaid
2262abf317
Merge branch 'master' into rm-change-arch 2022-11-29 10:38:32 +00:00
dependabot[bot]
d69b827715
build(deps): bump bootsnap from 1.14.0 to 1.15.0 in /Library/Homebrew
Bumps [bootsnap](https://github.com/Shopify/bootsnap) from 1.14.0 to 1.15.0.
- [Release notes](https://github.com/Shopify/bootsnap/releases)
- [Changelog](https://github.com/Shopify/bootsnap/blob/main/CHANGELOG.md)
- [Commits](https://github.com/Shopify/bootsnap/compare/v1.14.0...v1.15.0)

---
updated-dependencies:
- dependency-name: bootsnap
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-29 10:38:32 +00:00
Mike McQuaid
49bacd681e
diagnostic: remove some checks.
- Some of these are currently failing globally on GitHub Actions.
- Some(/all?) of these predate our use of the macOS sandbox,
  environment filtering, PATH filtering and pushing users much harder to
  use bottles instead of building from source
- I haven't seen a case for a long time where any of these actually
  debugged a user issue. If/when this happens: we can add a given check
  back.
- This should allow us to dramatically reduce the amount of cleanup
  that `brew test-bot` needs to do on GitHub Actions.
2022-11-29 09:21:34 +00:00
Carlo Cabrera
239743f39b
Fix shellcheck error 2022-11-24 22:15:03 +08:00
Carlo Cabrera
cf01a7f985
brew.sh: remove HOMEBREW_CHANGE_ARCH_TO_ARM
We used to need this because the GitHub runner process was running under
Rosetta. GitHub Actions has supported native M1 runners for a few months
now, so I think it's time to remove this.
2022-11-24 22:07:30 +08:00
apainintheneck
1db5d967c3 Ignore os.rb where checks are defined 2022-11-23 20:39:59 -08:00
apainintheneck
9c2293a08e Move Sandbox check to extend/os 2022-11-23 20:39:59 -08:00
apainintheneck
65bce0ed3c Move unpack_strategy/zip check to extend/os 2022-11-23 20:39:59 -08:00
apainintheneck
260fc858df Fix rubocop errors 2022-11-23 20:39:39 -08:00
apainintheneck
d69326c8d0 Move ::Cleanup check to extend/os 2022-11-23 20:38:40 -08:00
BrewTestBot
6e215ecaba
Update RBI files for rubocop-rails.
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gemss.yml) workflow.
2022-11-21 18:14:15 +00:00
BrewTestBot
e1bf39a180
brew vendor-gems: commit updates. 2022-11-21 18:09:07 +00:00
dependabot[bot]
fd1ebc4e89
build(deps): bump rubocop-rails in /Library/Homebrew
Bumps [rubocop-rails](https://github.com/rubocop/rubocop-rails) from 2.17.2 to 2.17.3.
- [Release notes](https://github.com/rubocop/rubocop-rails/releases)
- [Changelog](https://github.com/rubocop/rubocop-rails/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rubocop/rubocop-rails/compare/v2.17.2...v2.17.3)

---
updated-dependencies:
- dependency-name: rubocop-rails
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-21 18:05:14 +00:00
Issy Long
38a1bf337f
Merge pull request #14162 from issyl0/rubocop-cleanup
rubocop_todo: Clean up deleted paths & excludes without offenses
2022-11-21 14:48:08 +00:00
Mike McQuaid
9637c0fbcc
Merge pull request #14164 from ThatsJustCheesy/brew-casks-root-formulae
Prevent `brew casks` from finding formulae at tap root
2022-11-21 14:31:24 +00:00
Ian Gregory
9013ca2a22 Prevent brew casks from finding formulae at tap root 2022-11-20 16:22:18 -05:00
apainintheneck
c7d53a2d9c Add cop to police os checks
The methods `OS.linux?` and `OS.mac?` should only be used
in `extend/os` and this cop makes sure of that.
2022-11-19 22:01:13 -08:00
Issy Long
5beebf2238
rubocop_todo: Clean up file paths that no longer exist 2022-11-20 00:00:20 +00:00
Issy Long
70553455b8
rubocop_todo: dependency.rb no longer has empty blocks 2022-11-20 00:00:15 +00:00
Issy Long
c37601f585
dev-cmd/bump-{cask,formula}-pr: args.message is before the default
- I was wondering why `brew bump` PRs have descriptions with both commands, like:

```
Created with `brew bump`.

---

Created by `brew bump-formula-pr`.
```

- Then I read the code and realised that "append" was the wrong word for the
  `--message` arg description.
2022-11-19 23:03:23 +00:00
Bo Anderson
81f262ece3
utils/gems: use env shebang when installing gems 2022-11-19 00:58:05 +00:00
BrewTestBot
75eb7c56f5
Update RBI files for bootsnap.
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gemss.yml) workflow.
2022-11-18 17:38:01 +00:00
BrewTestBot
6fb0d1dbdf
brew vendor-gems: commit updates. 2022-11-18 17:31:29 +00:00
dependabot[bot]
01b572b331
build(deps): bump bootsnap from 1.13.0 to 1.14.0 in /Library/Homebrew
Bumps [bootsnap](https://github.com/Shopify/bootsnap) from 1.13.0 to 1.14.0.
- [Release notes](https://github.com/Shopify/bootsnap/releases)
- [Changelog](https://github.com/Shopify/bootsnap/blob/main/CHANGELOG.md)
- [Commits](https://github.com/Shopify/bootsnap/compare/v1.13.0...v1.14.0)

---
updated-dependencies:
- dependency-name: bootsnap
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-18 17:24:22 +00:00
Bo Anderson
a4f082dfe0
Merge pull request #14155 from Bo98/bundler-2.3.26
Update Bundler to 2.3.26
2022-11-18 17:23:15 +00:00
Mike McQuaid
984d9d712d
Merge pull request #14141 from apainintheneck/speed-up-deleted-reason
Speed up `deleted_reason` method
2022-11-18 09:18:37 +00:00
apainintheneck
2601cc410b Only optimize for the core tap 2022-11-17 21:15:43 -08:00
Bo Anderson
e21c926f9b
Update Bundler to 2.3.26 2022-11-17 16:35:08 +00:00
BrewTestBot
f0815b86d2
Update RBI files for regexp_parser.
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gemss.yml) workflow.
2022-11-17 14:52:47 +00:00
BrewTestBot
1ac34a047b
brew vendor-gems: commit updates. 2022-11-17 14:46:05 +00:00
dependabot[bot]
fa9eab8d13
build(deps): bump regexp_parser from 2.6.0 to 2.6.1 in /Library/Homebrew
Bumps [regexp_parser](https://github.com/ammar/regexp_parser) from 2.6.0 to 2.6.1.
- [Release notes](https://github.com/ammar/regexp_parser/releases)
- [Changelog](https://github.com/ammar/regexp_parser/blob/master/CHANGELOG.md)
- [Commits](https://github.com/ammar/regexp_parser/compare/v2.6.0...v2.6.1)

---
updated-dependencies:
- dependency-name: regexp_parser
  dependency-type: indirect
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-17 14:42:06 +00:00
BrewTestBot
90f056218c
Update RBI files for rubocop-performance.
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gemss.yml) workflow.
2022-11-16 18:12:53 +00:00
BrewTestBot
46088f22e0
brew vendor-gems: commit updates. 2022-11-16 18:06:28 +00:00
dependabot[bot]
c6f1907486
build(deps): bump rubocop-performance in /Library/Homebrew
Bumps [rubocop-performance](https://github.com/rubocop/rubocop-performance) from 1.15.0 to 1.15.1.
- [Release notes](https://github.com/rubocop/rubocop-performance/releases)
- [Changelog](https://github.com/rubocop/rubocop-performance/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rubocop/rubocop-performance/compare/v1.15.0...v1.15.1)

---
updated-dependencies:
- dependency-name: rubocop-performance
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-16 18:02:50 +00:00
Mike McQuaid
efa04015a1
Merge pull request #14149 from danielbayley/dev-cmd-ruby
dev-cmd/`ruby`: add `--version`
2022-11-16 13:39:49 +00:00
Daniel Bayley
4bf2b3df4a dev-cmd/ruby: add --version 2022-11-16 13:09:31 +00:00
Alexander Bayandin
c013762945
Merge pull request #14148 from bayandin/fix-m2-detection
CPU: fix M2 family detection
2022-11-16 12:09:57 +00:00
Alexander Bayandin
f9b4bf9316
CPU: cleanup sysctl_int method
Co-authored-by: Bo Anderson <mail@boanderson.me>
2022-11-16 10:51:59 +00:00
Bo Anderson
bca9eb05d1
dev-cmd/unbottled: simulate target tag 2022-11-16 00:07:31 +00:00
Alexander Bayandin
449b872916
CPU: fix M2 detection 2022-11-15 11:02:56 +00:00
apainintheneck
c787df5294 Optimize deleted_reason for all taps 2022-11-15 00:09:52 -08:00
Mike McQuaid
b7391069d4
Merge pull request #14138 from danielbayley/cmd-install-dry-run
Fix `install` <cask> `--dry-run`
2022-11-14 12:19:11 +00:00
apainintheneck
2bc54e56e4 Optimize CoreTap in .deleted_reason
This limits the previous change to only the
core tap in `MissingFormula.deleted_reason`.

The reason for this is that the `git log` command
only becomes a performance issue when the number
of monthly commits is high which really only happens
with the core tap.
2022-11-12 00:01:06 -08:00
apainintheneck
5241439f43 Speed up MissingFormula.deleted_reason
The current way we find out where a formula was deleted is
using `git log` to query the last months worth of formula.
For core formula that is 11,000+ commits which makes this slow.

This quits early by diffing the current branch with a commit
from a month ago and checks if that file has been deleted in the
meantime. Then, it procedes with the above `git log` command.

Note: This will miss formula that were introduced less than a month
ago and removed in the meantime though that is seemingly very rare.
2022-11-11 14:39:50 -08:00
EricFromCanada
216a045b36
rubydoc: fixes for output 2022-11-11 16:16:54 -05:00
Daniel Bayley
b9ee9b868d Fix install <cask> --dry-run 2022-11-11 17:33:11 +00:00
Mike McQuaid
e1b2f68a6d
Merge pull request #14134 from p-linnane/fix-env-typo
docs: Fix env variable typo
2022-11-11 13:41:50 +00:00
razamatan
e7f723e543 uses_from_macos: add mandoc to allowed list
- see https://github.com/Homebrew/homebrew-core/pull/115411
2022-11-10 21:56:23 -08:00
Patrick Linnane
f81857140f
docs: Fix env variable typo 2022-11-10 07:33:52 -08:00
Mike McQuaid
a92c9eed82
style: check more shell scripts.
We were missing a few here so add them. Also, fix the changes in
`on-create-command.sh` that this catches.
2022-11-09 17:29:38 +00:00