37083 Commits

Author SHA1 Message Date
Bo Anderson
3b1c171184
Further split up Gemfile into groups 2023-09-27 17:33:44 +01:00
Mike McQuaid
b4274c8e00
Merge pull request #16041 from MikeMcQuaid/brew_ssh_sudo_env
bin/brew: pass through some SSH/sudo env vars.
2023-09-27 13:51:06 +01:00
Mike McQuaid
d799bd449c
Merge pull request #16043 from MikeMcQuaid/cli_parser_env_external_commands
cli/parser: check env var directly if there's no `EnvConfig` method.
2023-09-27 12:50:29 +01:00
Mike McQuaid
c2841e2998
Merge pull request #16042 from MikeMcQuaid/rubocop_no_minitest
rubocop: don't recommend minitest extension.
2023-09-27 12:47:10 +01:00
Mike McQuaid
58f8832a7e
cli/parser: check env var directly if there's no EnvConfig method.
Before this change, external commands, whether official or not, cannot
use the `env:` DSL for `Homebrew::CLI::Parser` without adding their
environment variable to `Homebrew::EnvConfig`.

Instead, if the method is not defined, check the environment variable
directly. This allows `env:` to be used as expected and allows
simplifying some (new) code in e.g. `brew bundle`.
2023-09-27 12:28:24 +01:00
Mike McQuaid
d43e1d0d83
bin/brew: pass through some SSH/sudo env vars.
`HOMEBREW_SSH_TTY` and `HOMEBREW_SUDO_USER` will be needed for
`brew services` after
https://github.com/Homebrew/homebrew-services/pull/588 is merged.
2023-09-27 11:59:28 +01:00
Mike McQuaid
2243edaca3
rubocop: don't recommend minitest extension.
We don't use or need it.
2023-09-27 11:56:11 +01:00
Mike McQuaid
67be775fd9
Merge pull request #16029 from abitrolly/edit-simplify
dev-cmd/edit: Move path specific functions to Pathname
2023-09-27 11:37:47 +01:00
Anatoli Babenia
0c51aea403 Fix typecheck errors 2023-09-27 12:49:37 +03:00
Anatoli Babenia
071a684b25 Replace refinements with local methods 2023-09-27 12:39:03 +03:00
Mike McQuaid
d20bcea146
Merge pull request #16039 from apainintheneck/load-formulae-from-files-in-audit
dev-cmd/audit: load formulae from files
2023-09-27 09:08:48 +01:00
Mike McQuaid
e5018531ae
Merge pull request #15954 from Bo98/vendor-cleanup
vendor/bundle/ruby: cleanup unneeded files
2023-09-27 09:08:20 +01:00
Anatoli Babenia
10a55ec4e1
Rename fail_with_message to raise_with_message! 2023-09-27 08:27:13 +03:00
apainintheneck
5859fcce44 dev-cmd/audit: load formulae from files
This is a test to see if this will fix some flaky checks on CI
that are caused by missing formulae while auditing the core tap.

- https://github.com/Homebrew/brew/issues/16037
2023-09-26 20:37:41 -07:00
Bo Anderson
582049454f
vendor/bundle/ruby: cleanup unneeded files 2023-09-26 18:39:57 +01:00
Mike McQuaid
39f76d6351
Merge pull request #16038 from MikeMcQuaid/brew_env_no_expansion
manpage: note env files do not support expansion.
2023-09-26 13:22:40 +01:00
Mike McQuaid
10c47af8c7
manpage: note env files do not support expansion.
Fixes #16027
2023-09-26 13:09:46 +01:00
Mike McQuaid
a8a1afc645
Merge pull request #16031 from p-linnane/update-commit-guidelines
docs: update commit style guidelines
2023-09-26 12:04:46 +01:00
Mike McQuaid
9d23bcc871
Merge pull request #16035 from Homebrew/dependabot/bundler/Library/Homebrew/zeitwerk-2.6.12
build(deps): bump zeitwerk from 2.6.11 to 2.6.12 in /Library/Homebrew
2023-09-26 11:57:15 +01:00
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