Mike McQuaid
801c737e1b
Merge pull request #17292 from Homebrew/homebrew_version_cache
...
brew.sh: cache HOMEBREW_VERSION on disk.
2024-05-14 16:05:28 +09:00
Mike McQuaid
a18e43c67c
Merge pull request #17287 from alebcay/messages-strict-typing
...
messages: enable strict typing
2024-05-14 15:52:50 +09:00
Mike McQuaid
41bf51e211
brew.sh: avoid shelling out when possible.
2024-05-14 15:46:33 +09:00
Mike McQuaid
2b363b904c
brew.sh: cache HOMEBREW_VERSION on disk.
...
This is a (relatively, for this Bash script) expensive operation that
can be trivially cached so: let's do so.
Speedup on my machine:
```
$ hyperfine "brew --version" "HOMEBREW_VERSION_CACHE=1 brew --version"
Benchmark 1: brew --version
Time (mean ± σ): 173.4 ms ± 5.1 ms [User: 28.7 ms, System: 67.0 ms]
Range (min … max): 167.3 ms … 182.9 ms 15 runs
Benchmark 2: HOMEBREW_VERSION_CACHE=1 brew --version
Time (mean ± σ): 145.9 ms ± 4.0 ms [User: 22.4 ms, System: 33.9 ms]
Range (min … max): 140.0 ms … 154.5 ms 17 runs
Summary
HOMEBREW_VERSION_CACHE=1 brew --version ran
1.19 ± 0.05 times faster than brew --version
```
Co-authored-by: Bo Anderson <mail@boanderson.me>
2024-05-14 15:46:32 +09:00
Mike McQuaid
1c6549517d
linkage_checker: test indirect dependencies.
...
Check for indirect dependencies with linkage with linkage in strict
test mode.
This should be done to ensure we accurately declare dependencies in
homebrew/core.
2024-05-14 12:12:19 +09:00
Patrick Linnane
8ec44f279b
github.rb: fix grammar
...
Signed-off-by: Patrick Linnane <patrick@linnane.io>
2024-05-13 14:57:08 -07:00
Patrick Linnane
992b50a413
various: fix minor typos
...
Signed-off-by: Patrick Linnane <patrick@linnane.io>
2024-05-13 14:30:06 -07:00
Caleb Xu
00ba3930d6
messages: enable strict typing
2024-05-13 08:48:41 -04:00
Mike McQuaid
d7e81bed35
Merge pull request #17285 from Homebrew/remove_oldname
...
formula: this was nilable before so remove it.
2024-05-13 07:53:38 +01:00
Mike McQuaid
cff0531888
formula: this was nilable before so remove it.
...
Other maintainers consider this preferable to setting to `odeprecated`.
2024-05-13 07:42:20 +01:00
Mike McQuaid
7461bf81a1
SBOM: more fixes.
...
- Remove use of (unused) `Cachable` module.
- Pass whether we're bottling to determine whether to create
reproducible SBOM or not. A reproducible SBOM omits the time and
compiler.
- Remove bottle information when bottling: we cannot know what e.g.
the checksum (and, with GitHub Packages, therefore also the download
location) will be before we've created the tarball contents.
- Always write a bottle on installation (unless we're bottling) to
provide new bottle information or freshen the existing one with the
information we stripped out for reproducibility e.g. the time and
compiler.
- Don't need to handle a `nil` `@source_modified_time` as it's always
set.
Fixes #17281
2024-05-13 07:36:51 +01:00
Patrick Linnane
50b65aa891
tap: adjust font cask path
...
Signed-off-by: Patrick Linnane <patrick@linnane.io>
2024-05-12 08:58:35 -07:00
Sean Molenaar
df0bd4cd73
fix: use UTC for all SBOM times
...
Issue GH-17281
2024-05-12 10:56:10 +02:00
Carlo Cabrera
71c4bfae79
Merge pull request #17222 from Homebrew/intel-runner-tag
...
github_runner_matrix: add `-x86_64` to Intel runner names
2024-05-12 02:19:47 +08:00
Carlo Cabrera
0a4794cf26
Merge pull request #17278 from Homebrew/dependabot/bundler/Library/Homebrew/multi-a73eca0838
...
build(deps): bump sorbet-static-and-runtime and sorbet-runtime in /Library/Homebrew
2024-05-12 02:14:30 +08:00
Carlo Cabrera
90c198fd5c
determine-test-runners: fix failing test
2024-05-12 02:09:37 +08:00
BrewTestBot
03a7d54264
Update RBI files for regexp_parser.
...
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gems.yml ) workflow.
2024-05-11 16:54:21 +00:00
BrewTestBot
38a84edca5
brew vendor-gems: commit updates.
2024-05-11 16:54:02 +00:00
BrewTestBot
2ae273b3d8
brew vendor-gems: commit updates.
2024-05-11 16:53:43 +00:00
dependabot[bot]
42cae2a6ee
build(deps-dev): bump regexp_parser in /Library/Homebrew
...
Bumps [regexp_parser](https://github.com/ammar/regexp_parser ) from 2.9.0 to 2.9.1.
- [Changelog](https://github.com/ammar/regexp_parser/blob/master/CHANGELOG.md )
- [Commits](https://github.com/ammar/regexp_parser/compare/v2.9.0...v2.9.1 )
---
updated-dependencies:
- dependency-name: regexp_parser
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-05-11 16:53:00 +00:00
dependabot[bot]
5681361d2d
build(deps): bump sorbet-static-and-runtime and sorbet-runtime
...
Bumps [sorbet-static-and-runtime](https://github.com/sorbet/sorbet ) and [sorbet-runtime](https://github.com/sorbet/sorbet ). These dependencies needed to be updated together.
Updates `sorbet-static-and-runtime` from 0.5.11371 to 0.5.11372
- [Release notes](https://github.com/sorbet/sorbet/releases )
- [Commits](https://github.com/sorbet/sorbet/commits )
Updates `sorbet-runtime` from 0.5.11371 to 0.5.11372
- [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-name: sorbet-runtime
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-05-11 16:52:50 +00:00
Patrick Linnane
9a49d67715
Merge pull request #17274 from Homebrew/dependabot/bundler/Library/Homebrew/multi-1adbf53272
2024-05-10 12:37:39 -07:00
BrewTestBot
6775834955
Update RBI files for prism.
...
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gems.yml ) workflow.
2024-05-10 18:27:32 +00:00
BrewTestBot
3303fecb9e
brew vendor-gems: commit updates.
2024-05-10 18:27:30 +00:00
BrewTestBot
1bd2c6ac2e
brew vendor-gems: commit updates.
2024-05-10 18:27:04 +00:00
dependabot[bot]
06c5d40538
build(deps): bump sorbet-runtime and sorbet-static-and-runtime
...
Bumps [sorbet-runtime](https://github.com/sorbet/sorbet ) and [sorbet-static-and-runtime](https://github.com/sorbet/sorbet ). These dependencies needed to be updated together.
Updates `sorbet-runtime` from 0.5.11370 to 0.5.11371
- [Release notes](https://github.com/sorbet/sorbet/releases )
- [Commits](https://github.com/sorbet/sorbet/commits )
Updates `sorbet-static-and-runtime` from 0.5.11370 to 0.5.11371
- [Release notes](https://github.com/sorbet/sorbet/releases )
- [Commits](https://github.com/sorbet/sorbet/commits )
---
updated-dependencies:
- dependency-name: sorbet-runtime
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: sorbet-static-and-runtime
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-05-10 18:26:37 +00:00
dependabot[bot]
c3df7448b9
build(deps-dev): bump prism from 0.28.0 to 0.29.0 in /Library/Homebrew
...
Bumps [prism](https://github.com/ruby/prism ) from 0.28.0 to 0.29.0.
- [Release notes](https://github.com/ruby/prism/releases )
- [Changelog](https://github.com/ruby/prism/blob/main/CHANGELOG.md )
- [Commits](https://github.com/ruby/prism/compare/v0.28.0...v0.29.0 )
---
updated-dependencies:
- dependency-name: prism
dependency-type: indirect
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-05-10 18:26:03 +00:00
Mike McQuaid
d194ed1b4f
Merge pull request #17265 from krehel/cask-font-fixes
...
Support font sharding in Homebrew/cask
2024-05-10 16:59:48 +01:00
Justin Krehel
836d819c43
Support font sharding in Homebrew/cask
2024-05-10 11:48:56 -04:00
Mike McQuaid
50384591c7
extend/kernel: add sigs to opoo
/onoe
/ofail
...
Add these and correctly pass through a string to
`GitHub::Actions.puts_annotation_if_env_set`.
Also, fix some call sites to not rely on the `void` return.
2024-05-10 14:12:19 +01:00
Mike McQuaid
af40f7d133
Revert "Create '.keepme' files in directories"
2024-05-10 08:26:31 +01:00
apainintheneck
efb14a0ec2
fix no autoremove suggestion typo
...
This suggests setting an environment variable that is different
than the one we end up checking so I've updated the warning so
now things match. If the goal was to have the name in the warning,
the environment variable checking logic could be updated. I have
no personal preference.
```console
$ brew irb
==> Interactive Homebrew Shell
Example commands available with: `brew irb --examples`
brew(main):001:0> ENV["HOMEBREW_NO_AUTO_REMOVE"] = "1"
=> "1"
brew(main):002:0> Homebrew::EnvConfig.no_autoremove?
=> false
brew(main):003:0> ENV["HOMEBREW_NO_AUTOREMOVE"] = "1"
=> "1"
brew(main):004:0> Homebrew::EnvConfig.no_autoremove?
=> true
```
2024-05-09 20:14:16 -07:00
Mike McQuaid
c1c4f4509b
Merge pull request #17256 from jasonkarns/patch-1
...
dev-cmd/tap-new: add Brewfile documentation to readme template
2024-05-09 19:24:14 +01:00
BrewTestBot
0c6a37c1bc
Update RBI files for rubocop.
...
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gems.yml ) workflow.
2024-05-09 17:02:06 +00:00
BrewTestBot
161f09889e
brew vendor-gems: commit updates.
2024-05-09 17:01:32 +00:00
dependabot[bot]
85168030ba
build(deps-dev): bump rubocop from 1.63.4 to 1.63.5 in /Library/Homebrew
...
Bumps [rubocop](https://github.com/rubocop/rubocop ) from 1.63.4 to 1.63.5.
- [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.63.4...v1.63.5 )
---
updated-dependencies:
- dependency-name: rubocop
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-05-09 17:00:33 +00:00
Patrick Linnane
1497a73720
Merge pull request #17261 from Homebrew/autoremove_default
2024-05-09 09:57:25 -07:00
Mike McQuaid
2707729266
formula_installer: don't fire cask warnings when installing.
...
e.g. `brew install go` complains about a cask migration otherwise.
2024-05-09 17:08:12 +01:00
Bo Anderson
3a36df5f2e
Merge pull request #17219 from Homebrew/long-build-queue
...
github_runner_matrix: support orchestrator long build queues
2024-05-09 15:08:43 +01:00
Mike McQuaid
16901a674f
extend/kernel: make opoo
/odie
/etc. print GitHub Actions notes.
...
We already do this for deprecations but these may make warnings
and errors from Homebrew easier to spot in GitHub Actions logs.
While we're here, cleanup other cases that should have used
`GitHub::Actions::Annotation` but didn't and provide some helpers and
tweaks there necessary for our use case here.
2024-05-09 14:43:53 +01:00
Mike McQuaid
3d114161b3
Enable HOMEBREW_AUTOREMOVE by autoremove_default
...
Enabled `HOMEBREW_AUTOREMOVE` by default, and added
`HOMEBREW_NO_AUTOREMOVE` to disable it.
Co-authored-by: Ruoyu Zhong <zhongruoyu@outlook.com>
2024-05-09 13:47:52 +01:00
Jason Karns
e40c3e24bd
Update Library/Homebrew/dev-cmd/tap-new.rb
...
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
2024-05-09 08:30:03 -04:00
Mike McQuaid
6ba84044b0
Merge pull request #17254 from Homebrew/sbom_tweaks
...
SBOM improvements
2024-05-09 13:21:02 +01:00
Mike McQuaid
442aa91704
SBOM improvements
...
- write a schema when installing formulae (if not already present)
- cache the schema on disk rather than downloading it every time
- make more methods/attributes `private`
- allow validation to be optional, only enable for Homebrew developers
at installation time
- use the tab for more, correct information
- ensure that dependencies/bottles are written correctly
- use new SBOM 3 schema URL
- improve test coverage
2024-05-09 13:10:37 +01:00
Mike McQuaid
78a812b234
Merge pull request #17262 from Homebrew/github-auth-seteuid
...
utils/github/api: use real UID for auth fetching
2024-05-09 12:19:44 +01:00
Bo Anderson
b790c7fe8c
utils/github/api: use real UID for auth fetching
2024-05-09 11:55:14 +01:00
Mike McQuaid
fbb73ba1ec
Merge pull request #17259 from dkav/chk-initial-branch
...
cmd/update.sh: check initial branch is not master
2024-05-09 08:42:24 +01:00
BrewTestBot
b161ac22d9
Update RBI files for tapioca.
...
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gems.yml ) workflow.
2024-05-09 02:39:24 +00:00
BrewTestBot
5f0c53a7b5
brew vendor-gems: commit updates.
2024-05-09 02:39:06 +00:00
dependabot[bot]
efb9c15367
build(deps-dev): bump tapioca from 0.14.0 to 0.14.1 in /Library/Homebrew
...
Bumps [tapioca](https://github.com/Shopify/tapioca ) from 0.14.0 to 0.14.1.
- [Release notes](https://github.com/Shopify/tapioca/releases )
- [Commits](https://github.com/Shopify/tapioca/compare/v0.14.0...v0.14.1 )
---
updated-dependencies:
- dependency-name: tapioca
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-05-09 02:38:04 +00:00