38364 Commits

Author SHA1 Message Date
Mike McQuaid
3021e707be
Merge pull request #16034 from Homebrew/dependabot/bundler/Library/Homebrew/rubocop-sorbet-0.7.4
build(deps): bump rubocop-sorbet from 0.7.3 to 0.7.4 in /Library/Homebrew
2023-09-26 11:57:03 +01:00
Anatoli Babenia
2445b687c6 Use any? to check for warning message and fix brew style 2023-09-26 10:10:47 +03:00
BrewTestBot
4acd736aba
Update RBI files for zeitwerk.
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gems.yml) workflow.
2023-09-25 19:14:08 +00:00
BrewTestBot
dff8848f3a
Update RBI files for rubocop-sorbet.
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gems.yml) workflow.
2023-09-25 19:10:46 +00:00
BrewTestBot
3d63733e2e
brew vendor-gems: commit updates. 2023-09-25 19:05:19 +00:00
BrewTestBot
9856fe006d
brew vendor-gems: commit updates. 2023-09-25 19:03:51 +00:00
dependabot[bot]
764db39eaa
build(deps): bump zeitwerk from 2.6.11 to 2.6.12 in /Library/Homebrew
Bumps [zeitwerk](https://github.com/fxn/zeitwerk) from 2.6.11 to 2.6.12.
- [Changelog](https://github.com/fxn/zeitwerk/blob/main/CHANGELOG.md)
- [Commits](https://github.com/fxn/zeitwerk/compare/v2.6.11...v2.6.12)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-25 19:01:24 +00:00
dependabot[bot]
83261c2c34
build(deps): bump rubocop-sorbet in /Library/Homebrew
Bumps [rubocop-sorbet](https://github.com/shopify/rubocop-sorbet) from 0.7.3 to 0.7.4.
- [Release notes](https://github.com/shopify/rubocop-sorbet/releases)
- [Commits](https://github.com/shopify/rubocop-sorbet/compare/v0.7.3...v0.7.4)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-25 19:00:15 +00:00
Patrick Linnane
3bd4050a6f
docs: update commit style guidelines 2023-09-25 08:55:16 -07:00
Anatoli Babenia
d16e7e1f32 Rename refinement 2023-09-25 18:50:38 +03:00
Anatoli Babenia
6c7f3eb233 Move condition in interpolated part into variable 2023-09-25 18:11:27 +03:00
Anatoli Babenia
e3c0dafbc4
Update Library/Homebrew/dev-cmd/edit.rb
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
2023-09-25 18:03:57 +03:00
Anatoli Babenia
cbee941502 Add proper sig for fail_with_message 2023-09-25 17:34:10 +03:00
Anatoli Babenia
7e835bcd97 Skip backticks when printing env var name 2023-09-25 17:22:18 +03:00
Anatoli Babenia
96ca1c561a Move helper Pathname methods into Refinement
https://docs.ruby-lang.org/en/2.4.0/syntax/refinements_rdoc.html
2023-09-25 17:21:21 +03:00
Anatoli Babenia
466055a1be Use regexp interpolation instead of string concat 2023-09-25 16:13:16 +03:00
Anatoli Babenia
63c60d2859 Rename fail to more descriptive fail_with_message 2023-09-25 15:58:52 +03:00
Anatoli Babenia
a78da3ecf0 Check paths exist before brew install warning 2023-09-25 15:56:41 +03:00
Anatoli Babenia
8f072dc05c Move error reporting logic for absent path to separate method 2023-09-25 15:56:41 +03:00
Anatoli Babenia
eae95670ef Separate logic that shows warning from path detection 2023-09-25 15:56:41 +03:00
Anatoli Babenia
1cbf5ce093 dev-cmd/edit: Move path specific functions to Pathname 2023-09-25 15:56:41 +03:00
Mike McQuaid
f1d345a60e
Merge pull request #16024 from abitrolly/patch-2
dev-cmd/edit: make the warning easier to read
2023-09-25 13:08:04 +01:00
Mike McQuaid
a8519f78fb
Merge pull request #16019 from fxcoudert/ventura2
Make Sonoma supported
4.1.13
2023-09-25 13:04:07 +01:00
Anatoli Babenia
84ce25d370
Make warning message fit 80 char limit
The longest line below limit is 59 chars this way.

Warning: `brew install` ignores locally edited formulae if
`HOMEBREW_NO_INSTALL_FROM_API` is not set.
2023-09-25 06:48:18 +03:00
apainintheneck
ddfa723f77 Update service socket docs 2023-09-24 12:04:55 -07:00
apainintheneck
afeef33bc1 Add tests for multiple service sockets 2023-09-24 11:58:11 -07:00
Francois-Xavier Coudert
c3a2c40aa8 Make Sonoma supported 2023-09-24 11:12:05 +02:00
apainintheneck
ae5e9387b9 service: support multiple sockets in DSL
This adds support for multiple named sockets to the service DSL.
It also retains backwards compatibility with the previous DSL
where you can declare one socket and it is always just named
Listener by default.
2023-09-23 19:29:21 -07:00
Bo Anderson
afbea15d5c
Merge pull request #16023 from Homebrew/sorbet-files-update
sorbet: Update RBI files.
2023-09-23 17:32:18 +01:00
Anatoli Babenia
a0a4fa4ed9
dev-cmd/edit: ignore linefeed in the message 2023-09-23 13:01:43 +03:00
Anatoli Babenia
4d625d03fc
dev-cmd/edit: make the warning easier to read 2023-09-23 12:56:26 +03:00
BrewTestBot
115df3389c
sorbet: Update RBI files.
Autogenerated by the [sorbet](https://github.com/Homebrew/brew/blob/master/.github/workflows/sorbet.yml) workflow.
2023-09-23 00:24:15 +00:00
Mike McQuaid
0e22d828f0
Merge pull request #16020 from Homebrew/sponsors-maintainers-man-completions
Update sponsors.
2023-09-22 15:09:11 +01:00
Mike McQuaid
073a4bb925
Merge pull request #16014 from apainintheneck/scrub-sorbet-runtime-from-backtrace
utils/backtrace: scrub sorbet-runtime from backtrace
2023-09-22 09:53:10 +01:00
apainintheneck
85bd4c7e1f utils/backtrace: scrub sorbet-runtime from backtrace
Ever since we started using this at runtime it's been polluting
the backtrace output. This makes it harder to debug errors and
increases the amount of info users have to paste into the box
when filing an issue.

This is a very direct approach. Essentially, we strip out
everything related to the `sorbet-runtime` gem whenever the top
line in the backtrace is unrelated to sorbet-runtime.

The hope is that this will allow errors related to sorbet to
be diagnosed easily while also reducing the backtrace size
for all other types of errors.

Sometimes it is useful to see the full backtrace though.
For those cases, we include the full backtrace when
`--verbose` is passed in and print a warning that the
Sorbet lines have been removed from the backtrace the
first time they are removed.

Note: This requires gems to be set up so that the call to
`Gem.paths.home` works correctly. For that reason, it must
be included after `utils/gems` which is included in
`standalone/load_path` already.
2023-09-21 21:07:22 -07:00
BrewTestBot
de30852c3f
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-09-22 00:05:30 +00:00
Mike McQuaid
1f80e82dd7
Merge pull request #16011 from apainintheneck/clean-up-readall-command
cmd/readall: clean up todos
2023-09-20 08:45:25 +01:00
apainintheneck
5760ae4fb2 cmd/readall: Cleanup todos
- keep running the command against all os/arch combinations
  as the default
- remove todos and deprecations related to changing the behavior
- create constants for os/arch combinations
2023-09-19 21:33:13 -07:00
Kevin
aa2a77b1f1
Merge pull request #16010 from apainintheneck/improve-versioned-formula-names-performance
cmd/audit: improve performance of versioned formula names
4.1.12
2023-09-16 18:39:21 -07:00
apainintheneck
7e05a9b574 cmd/audit: improve performance of versioned formula names
There is a check for other versioned formula with the same name
in the file audit. This just memoizes all of the versioned
formulae in a tap during the first call and then uses that much
shorter list everytime it checks for things.
2023-09-16 09:18:13 -07:00
Mike McQuaid
184efd9eab
Merge pull request #16008 from Bo98/declared_runtime_dependencies-perf
formula: add global caching for `declared_runtime_dependencies`
2023-09-15 08:26:45 +01:00
Bo Anderson
be2834ace8
formula: add global caching for declared_runtime_dependencies 2023-09-15 03:08:27 +01:00
Mike McQuaid
b2cf50bbe1
Merge pull request #16004 from EricFromCanada/bump-reduce-output
dev-cmd/bump: reduce unnecessary output
2023-09-14 15:24:33 +01:00
Mike McQuaid
1a481be3f6
Merge pull request #16003 from Bo98/sorbet-sonoma
utils/gems: don't allow Sorbet to install on Sonoma's system Ruby
2023-09-14 15:18:58 +01:00
Bo Anderson
ade6ce123a
Merge pull request #16005 from fxcoudert/iconv
superenv: help gettext-based configure scripts
2023-09-14 14:34:51 +01:00
Bo Anderson
fe07ced056
Merge pull request #16002 from samford/update-xcodebuild-type-signature
Formula, BuildError: Update type signatures
2023-09-14 14:25:11 +01:00
Francois-Xavier Coudert
e1ca3b5c35 superenv: help gettext-based configure scripts 2023-09-14 15:19:48 +02:00
Sam Ford
578c935bcf
Formula, BuildError: Update type signatures
We're seeing type errors when building formulae that use something
like `xcodebuild ..., "-arch", Hardware::CPU.arch`, since `CPU.arch`
is a symbol. We've been addressing these issues by calling `#to_s` on
the value but there was some talk about simply expanding the type
signatures to accommodate anything that will be cast to a `String`.

There's maybe still an argument to be made for doing string conversion
in formulae but expanding the type signatures will resolve a number of
existing type errors if we simply want to rely on implicit type
casting.

Past that, this also updates the type signature for `BuildError` to
align with the `#system` signature changes, as we receive a type error
otherwise.
2023-09-13 19:16:04 -04:00
Eric Knibbe
7c707216a2
dev-cmd/bump: skip head-only & disabled formulae 2023-09-13 18:02:12 -04:00
Eric Knibbe
6235a7f1af
dev-cmd/bump: omit PR lines with --no-pull-requests 2023-09-13 17:59:11 -04:00