Mike McQuaid
0d6de643f8
Merge pull request #19706 from Homebrew/revert-19703-bundle-exec-simultaneous-services
...
Revert "bundle: handle simultaneous `exec --services` better"
2025-04-04 14:47:04 +00:00
Mike McQuaid
94db0b2f34
Revert "bundle: handle simultaneous exec --services
better"
2025-04-04 15:30:47 +01:00
Mike McQuaid
4c56360267
Merge pull request #19700 from Homebrew/livecheck/make-os-available
...
Make `os` available in `livecheck` blocks
2025-04-04 14:29:16 +00:00
Sam Ford
8d52d9b3fc
livecheck: add tests for delegates
...
This adds tests for the livecheck DSL's `version` and `arch`
delegates. This doesn't affect test coverage but it ensures that the
methods work as expected in `livecheck` blocks.
2025-04-04 09:17:32 -04:00
Sam Ford
ed48426a33
tests: support :needs_arm, :needs_intel metadata
...
This adds the ability to specify tests that depend on a certain CPU
architecture using `:needs_arm` or `:needs_intel`, similar to the
existing `:needs_macos` and `:needs_linux` metadata for tests that
depend on a certain OS.
2025-04-04 09:17:32 -04:00
Sam Ford
97cce36779
Make os available in cask livecheck blocks
...
Casks now support an `os` DSL method, similar to `arch`. This makes
it available in `livecheck` blocks, like we do with `arch`.
2025-04-04 09:17:32 -04:00
Mike McQuaid
fc86107ebe
Merge pull request #19705 from Homebrew/revert-19702-services-loaded_file
...
Revert "services: add loaded_file data"
2025-04-04 12:24:20 +00:00
Mike McQuaid
76901b1352
Revert "services: add loaded_file data"
2025-04-04 13:11:13 +01:00
Mike McQuaid
74992445af
Merge pull request #19703 from Homebrew/bundle-exec-simultaneous-services
...
bundle: handle simultaneous `exec --services` better
2025-04-04 11:04:06 +00:00
Mike McQuaid
79d5115ba3
Merge pull request #19689 from Homebrew/bump-cask-pr-fix-macos-host-handling
...
bump-cask-pr: fix macOS host handling
2025-04-04 07:51:44 +00:00
Mike McQuaid
0d9c0561e1
Merge pull request #19702 from Homebrew/services-loaded_file
...
services: add loaded_file data
2025-04-04 07:51:38 +00:00
Bo Anderson
1ef00cb55f
bundle: handle simultaneous exec --services
better
2025-04-04 08:10:11 +01:00
Bo Anderson
a6bee0736f
services: add loaded_file data
2025-04-04 07:25:10 +01:00
Bo Anderson
1c71c200bf
Merge pull request #19698 from Homebrew/fix-cop-namespace
...
os/linux/development_tools: update cop namespace
2025-04-04 05:40:59 +00:00
Patrick Linnane
997ea136b6
os/linux/development_tools: update cop namespace
...
Signed-off-by: Patrick Linnane <patrick@linnane.io>
2025-04-03 19:43:31 -07:00
Patrick Linnane
5a72a46ab0
Merge pull request #19694 from Homebrew/dependabot/bundler/Library/Homebrew/rubocop-1.75.2
...
build(deps-dev): bump rubocop from 1.75.1 to 1.75.2 in /Library/Homebrew
2025-04-03 22:25:04 +00:00
Sam Ford
612fec47f3
bump-cask-pr: rescue CaskUnreadableError
...
The `replace_version_and_checksum` method handles a `CaskInvalidError`
when loading a cask (handling casks that aren't valid on Linux) but
we can sometimes still encounter an error when bumping a cask with
on_system blocks. For example, bumping `displaylink` will produce a
`Cask 'displaylink' is unreadable: undefined method 'csv' for nil`
error when `SimulateSystem` runs as Linux, as the cask interpolates
`version.csv.first` in a `license` string but `version` isn't set on
Linux.
This adds `Cask::CaskUnreadableError` to the `rescue` arguments,
which accounts for this particular situation (allowing `displaylink`
to be bumped like before).
2025-04-03 17:56:48 -04:00
Sam Ford
38410f5432
bump-cask-pr: fix macOS host handling
...
`bump-cask-pr` was recently updated to add Linux support but the
change to the `replace_version_and_checksum` logic has broken the
command for casks that have on_system blocks that reference specific
macOS versions (e.g., `on_monterey :or_newer` in `logi-options+`).
The previous logic only simulated the arch, so the `current_os` value
on macOS was a specific version like `:sequoia`. The current logic
uses generic `:macos` values, which work for `on_macos` blocks but
don't work for blocks like `on_sequoia`, etc. This leads to an
`undefined method 'latest?' for nil` error, as `old_cask.version` is
`nil` in this scenario (i.e., none of the on_system blocks apply to
`:macos`, so `version` is never set).
This updates the method to only specify the OS in `system_options` if
the value doesn't align with the host (e.g., `:linux` on macOS),
which restores the previous behavior.
This also replaces `:macos` values with the newest macOS version
(e.g., `:sequoia`), so that `bump-cask-pr` on Linux can update casks
with on_system blocks that reference specific macOS versions. A
generic `:macos` value doesn't work with those on_system blocks, so
`version` is never called on Linux in that scenario but it works as
expected if we use the newest macOS value instead. This may not be
perfect but it brings `bump-cask-pr` a little closer to parity with
macOS on Linux.
Lastly, this skips `system_options` values where `old_cask` has no
version, as this means the cask doesn't apply to that OS/arch. We've
been seeing a related error on homebrew/cask autobump CI and this
guard should help to avoid it.
2025-04-03 17:56:47 -04:00
BrewTestBot
d0476b4a3d
Update RBI files for rubocop.
...
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gems.yml ) workflow.
2025-04-03 20:32:27 +00:00
BrewTestBot
f5f84ee233
brew vendor-gems: commit updates.
2025-04-03 20:32:04 +00:00
dependabot[bot]
fee0621256
build(deps-dev): bump rubocop from 1.75.1 to 1.75.2 in /Library/Homebrew
...
Bumps [rubocop](https://github.com/rubocop/rubocop ) from 1.75.1 to 1.75.2.
- [Release notes](https://github.com/rubocop/rubocop/releases )
- [Changelog](https://github.com/rubocop/rubocop/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rubocop/rubocop/compare/v1.75.1...v1.75.2 )
---
updated-dependencies:
- dependency-name: rubocop
dependency-version: 1.75.2
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2025-04-03 20:27:31 +00:00
Patrick Linnane
b250ca8055
Merge pull request #19695 from Homebrew/dependabot/bundler/Library/Homebrew/rubocop-ast-1.44.0
...
build(deps-dev): bump rubocop-ast from 1.43.0 to 1.44.0 in /Library/Homebrew
2025-04-03 20:06:49 +00:00
Patrick Linnane
e863fe3ee0
Merge pull request #19693 from Homebrew/dependabot/bundler/Library/Homebrew/sorbet-997f6512ce
...
build(deps): bump the sorbet group in /Library/Homebrew with 4 updates
2025-04-03 20:05:21 +00:00
BrewTestBot
1d1732d053
Update RBI files for rubocop-ast.
...
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gems.yml ) workflow.
2025-04-03 19:52:02 +00:00
BrewTestBot
be30f8b84c
brew vendor-gems: commit updates.
2025-04-03 19:51:54 +00:00
BrewTestBot
d72f74abb6
brew vendor-gems: commit updates.
2025-04-03 19:51:49 +00:00
Patrick Linnane
adcd8e050a
Merge pull request #19696 from Homebrew/dependabot/pip/Library/Homebrew/formula-analytics/typing-extensions-4.13.1
...
build(deps): bump typing-extensions from 4.12.2 to 4.13.1 in /Library/Homebrew/formula-analytics
2025-04-03 19:51:47 +00:00
dependabot[bot]
75a72b90e3
build(deps): bump typing-extensions
...
Bumps [typing-extensions](https://github.com/python/typing_extensions ) from 4.12.2 to 4.13.1.
- [Release notes](https://github.com/python/typing_extensions/releases )
- [Changelog](https://github.com/python/typing_extensions/blob/main/CHANGELOG.md )
- [Commits](https://github.com/python/typing_extensions/compare/4.12.2...4.13.1 )
---
updated-dependencies:
- dependency-name: typing-extensions
dependency-version: 4.13.1
dependency-type: indirect
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2025-04-03 18:54:37 +00:00
dependabot[bot]
83486fbe9d
build(deps-dev): bump rubocop-ast in /Library/Homebrew
...
Bumps [rubocop-ast](https://github.com/rubocop/rubocop-ast ) from 1.43.0 to 1.44.0.
- [Release notes](https://github.com/rubocop/rubocop-ast/releases )
- [Changelog](https://github.com/rubocop/rubocop-ast/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rubocop/rubocop-ast/compare/v1.43.0...v1.44.0 )
---
updated-dependencies:
- dependency-name: rubocop-ast
dependency-version: 1.44.0
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2025-04-03 18:37:04 +00:00
dependabot[bot]
e942d9e369
build(deps): bump the sorbet group in /Library/Homebrew with 4 updates
...
Bumps the sorbet group in /Library/Homebrew with 4 updates: [sorbet-static-and-runtime](https://github.com/sorbet/sorbet ), [sorbet-runtime](https://github.com/sorbet/sorbet ), [sorbet](https://github.com/sorbet/sorbet ) and [sorbet-static](https://github.com/sorbet/sorbet ).
Updates `sorbet-static-and-runtime` from 0.5.11980 to 0.5.11984
- [Release notes](https://github.com/sorbet/sorbet/releases )
- [Commits](https://github.com/sorbet/sorbet/commits )
Updates `sorbet-runtime` from 0.5.11980 to 0.5.11984
- [Release notes](https://github.com/sorbet/sorbet/releases )
- [Commits](https://github.com/sorbet/sorbet/commits )
Updates `sorbet` from 0.5.11980 to 0.5.11984
- [Release notes](https://github.com/sorbet/sorbet/releases )
- [Commits](https://github.com/sorbet/sorbet/commits )
Updates `sorbet-static` from 0.5.11980 to 0.5.11984
- [Release notes](https://github.com/sorbet/sorbet/releases )
- [Commits](https://github.com/sorbet/sorbet/commits )
---
updated-dependencies:
- dependency-name: sorbet-static-and-runtime
dependency-version: 0.5.11984
dependency-type: direct:development
update-type: version-update:semver-patch
dependency-group: sorbet
- dependency-name: sorbet-runtime
dependency-version: 0.5.11984
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: sorbet
- dependency-name: sorbet
dependency-version: 0.5.11984
dependency-type: indirect
update-type: version-update:semver-patch
dependency-group: sorbet
- dependency-name: sorbet-static
dependency-version: 0.5.11984
dependency-type: indirect
update-type: version-update:semver-patch
dependency-group: sorbet
...
Signed-off-by: dependabot[bot] <support@github.com>
2025-04-03 18:36:20 +00:00
Mike McQuaid
e3137f192f
Merge pull request #19642 from Homebrew/linux_ci_gcc
...
Update Linux GCC code.
2025-04-03 15:25:43 +00:00
Mike McQuaid
8937beb3a1
Merge pull request #19688 from Homebrew/unbottled-linux-arch
...
dev-cmd/unbottled: check arch requirement on Linux
2025-04-03 15:11:49 +00:00
Mike McQuaid
0c476a0a97
Merge pull request #19692 from Homebrew/services_prioritise_print
...
services: prioritise `launchctl print` over `launchctl list`.
2025-04-03 14:13:50 +00:00
Michael Cho
053fa14fc2
dev-cmd/unbottled: check arch requirement on Linux
2025-04-03 10:01:07 -04:00
Mike McQuaid
2b4324af9b
Update Linux GCC code.
...
Update both the variables that dictate this and the documents that
explain our GCC/glibc policies.
These should ease a future migration to a newer GCC version.
2025-04-03 12:47:21 +01:00
Mike McQuaid
5a211a022d
Merge pull request #19691 from Homebrew/sorbet-files-update
...
sorbet: Update RBI files.
2025-04-03 11:05:27 +00:00
Mike McQuaid
08633d4cb6
Merge pull request #19686 from Homebrew/bundle_exec_env_version
...
bundle: fix up formula name for environment variable.
2025-04-03 10:15:47 +00:00
Mike McQuaid
3012f427df
bundle: fix up formula name for environment variable.
...
We previously were trying to pass through invalid environment variable
names so let's fix these up and query those instead.
2025-04-03 11:05:07 +01:00
Mike McQuaid
c592ae63dd
services: prioritise launchctl print
over launchctl list
.
...
In https://github.com/Homebrew/brew/pull/19602 we changed
`launchctl list` to pass the domain target. Sadly, this is not valid
syntax. Instead, restore passing the `service_name` to `launchctl list`
and instead use `launchctl print` first to query the more specific
domain target before we fall back to the less specific service name.
2025-04-03 10:01:45 +01:00
BrewTestBot
12e2818d1b
sorbet: Update RBI files.
...
Autogenerated by the [sorbet](https://github.com/Homebrew/brew/blob/master/.github/workflows/sorbet.yml ) workflow.
2025-04-03 08:12:33 +00:00
Mike McQuaid
e537b716e8
Merge pull request #19685 from botantony/bump-no-auto
...
dev-cmd/bump: add `--no-autobump` flag
2025-04-03 07:47:20 +00:00
Mike McQuaid
b44dfb2999
Merge pull request #19676 from Homebrew/brew_bundle_upgrade_formula
...
Add `brew bundle --upgrade-formulae`
2025-04-03 07:37:07 +00:00
Patrick Linnane
b534d61c0b
Merge pull request #19687 from Homebrew/dependabot/bundler/Library/Homebrew/sorbet-46ed8de968
...
build(deps): bump the sorbet group in /Library/Homebrew with 4 updates
2025-04-03 02:35:00 +00:00
BrewTestBot
b93734c336
brew vendor-gems: commit updates.
2025-04-03 01:55:24 +00:00
botantony
3c33fa9d43
dev-cmd/bump: update shell completions and man page
...
Signed-off-by: botantony <antonsm21@gmail.com>
2025-04-02 20:29:50 +02:00
dependabot[bot]
64f71f53bb
build(deps): bump the sorbet group in /Library/Homebrew with 4 updates
...
Bumps the sorbet group in /Library/Homebrew with 4 updates: [sorbet-static-and-runtime](https://github.com/sorbet/sorbet ), [sorbet-runtime](https://github.com/sorbet/sorbet ), [sorbet](https://github.com/sorbet/sorbet ) and [sorbet-static](https://github.com/sorbet/sorbet ).
Updates `sorbet-static-and-runtime` from 0.5.11971 to 0.5.11980
- [Release notes](https://github.com/sorbet/sorbet/releases )
- [Commits](https://github.com/sorbet/sorbet/commits )
Updates `sorbet-runtime` from 0.5.11971 to 0.5.11980
- [Release notes](https://github.com/sorbet/sorbet/releases )
- [Commits](https://github.com/sorbet/sorbet/commits )
Updates `sorbet` from 0.5.11971 to 0.5.11980
- [Release notes](https://github.com/sorbet/sorbet/releases )
- [Commits](https://github.com/sorbet/sorbet/commits )
Updates `sorbet-static` from 0.5.11971 to 0.5.11980
- [Release notes](https://github.com/sorbet/sorbet/releases )
- [Commits](https://github.com/sorbet/sorbet/commits )
---
updated-dependencies:
- dependency-name: sorbet-static-and-runtime
dependency-type: direct:development
update-type: version-update:semver-patch
dependency-group: sorbet
- dependency-name: sorbet-runtime
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: sorbet
- dependency-name: sorbet
dependency-type: indirect
update-type: version-update:semver-patch
dependency-group: sorbet
- dependency-name: sorbet-static
dependency-type: indirect
update-type: version-update:semver-patch
dependency-group: sorbet
...
Signed-off-by: dependabot[bot] <support@github.com>
2025-04-02 18:10:10 +00:00
Mike McQuaid
89d0309b9c
Add brew bundle --upgrade-formulae
...
This flag allows you to specify formulae to upgrade, even if
`$HOMEBREW_BUNDLE_NO_UPGRADE` is set.
This is useful for upgrading specific formulae without upgrading all
formulae.
While we're here, let's add Sorbet signatures to the `Bundle` module
because I needed to add a new method there anyway.
2025-04-02 17:15:36 +01:00
Bo Anderson
e42c792fe3
Merge pull request #19684 from Homebrew/bundle-exec-tests
...
bundle: add tests for `exec --services`
2025-04-02 15:52:26 +00:00
botantony
aa86fcc9b3
dev-cmd/bump: suggestions from MikeMcQuaid
...
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
Signed-off-by: botantony <antonsm21@gmail.com>
2025-04-02 17:23:09 +02:00
Bo Anderson
4254b75cb8
bundle: add tests for exec --services
2025-04-02 16:09:16 +01:00