Patrick Linnane
2f3076b4ad
Merge pull request #17797 from muescha/patch-2
2024-07-18 08:24:23 -07:00
Bo Anderson
16d547b030
attestation: handle bad configurations better
2024-07-18 16:11:25 +01:00
Patrick Linnane
e3851595f1
Merge pull request #17792 from Homebrew/explain-std_-_args
2024-07-18 08:10:48 -07:00
Bo Anderson
17ccc79857
dependency: fix missed upgrades when an alias is changed to a formula
2024-07-18 15:30:04 +01:00
Muescha
cee029516e
Update Brew-Livecheck.md
...
fix ruby style guide check
2024-07-18 16:07:26 +02:00
Muescha
8a00f0451b
Update Brew-Livecheck.md: add examples for modify version information
...
add examples for modify version information
2024-07-18 15:56:43 +02:00
Muescha
56ec4363eb
Update How-To-Open-a-Homebrew-Pull-Request.md: add links to Manpage
...
add links to Manpage
2024-07-18 15:29:36 +02:00
apainintheneck
75cfa21068
Avoid frozen array errors in brew upgrade
...
The `Homebrew::CLI::NamedArgs` class often returns frozen arrays so this one cannot
be easily modified in-place here. We just overwrite it instead.
I also updated the `brew reinstall` command logic to match for consistency.
```console
$ brew upgrade gh --verbose --debug
...
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FromAPILoader): loading gh
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FromAPILoader): loading gh
Error: can't modify frozen Array: [#<Formula gh (stable) /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/g/gh.rb>]
/usr/local/Homebrew/Library/Homebrew/cmd/upgrade.rb:139:in `delete'
/usr/local/Homebrew/Library/Homebrew/cmd/upgrade.rb:139:in `run'
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11481/lib/types/private/methods/call_validation.rb:270:in `bind_call'
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11481/lib/types/private/methods/call_validation.rb:270:in `validate_call'
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11481/lib/types/private/methods/_methods.rb:277:in `block in _on_method_added'
/usr/local/Homebrew/Library/Homebrew/brew.rb:95:in `<main>'
```
2024-07-17 23:54:50 -07:00
Kevin
4aae003a1a
Merge pull request #17766 from Homebrew/fix-formula-uri-loader
...
FormulaURILoader: use regex to validate refs before attempting to cast
2024-07-17 20:07:17 -07:00
Ruoyu Zhong
921210dc71
Merge pull request #17790 from Homebrew/sponsors-maintainers-man-completions
...
Update sponsors.
2024-07-18 10:30:44 +08:00
Patrick Linnane
7b8d0e6b7f
Formula-Cookbook: add std_*_args
explanations
...
Signed-off-by: Patrick Linnane <patrick@linnane.io>
2024-07-17 17:36:51 -07:00
BrewTestBot
2e1cac5d20
sorbet: Update RBI files.
...
Autogenerated by the [sorbet](https://github.com/Homebrew/brew/blob/master/.github/workflows/sorbet.yml ) workflow.
2024-07-18 00:21:40 +00:00
BrewTestBot
ba8445cbed
Update sponsors.
...
Autogenerated by the [sponsors-maintainers-man-completions](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/sponsors-maintainers-man-completions.yml ) workflow.
2024-07-18 00:06:29 +00:00
Issy Long
b033119523
utils/github/actions: Bump to Sorbet typed: strict
2024-07-17 18:00:20 -04:00
Issy Long
07f9f3f8e0
utils/github/artifacts: Bump to Sorbet typed: strict
2024-07-17 18:00:20 -04:00
Issy Long
5b84ee0195
utils/tar: Bump to Sorbet typed: strict
2024-07-17 18:00:20 -04:00
Issy Long
3290b7e616
env_config: Bump to Sorbet typed: strict
2024-07-17 16:02:01 -04:00
Issy Long
75b72f2fd9
official_taps: Bump to Sorbet typed: strict
2024-07-17 16:02:01 -04:00
Issy Long
7282b4d7a2
os: Bump to Sorbet typed: strict
2024-07-17 16:01:59 -04:00
Nanda H Krishna
321498c327
Merge pull request #17760 from Homebrew/gh-fix
2024-07-17 15:23:16 -04:00
Nanda H Krishna
6db608f43f
Ensure that the gh
formula is sufficiently new
2024-07-17 14:48:53 -04:00
Nanda H Krishna
8839ccfe72
Fix tests for attestations
2024-07-17 14:48:53 -04:00
Nanda H Krishna
81e606007f
Fix type errors
2024-07-17 14:48:52 -04:00
Nanda H Krishna
d2d814414e
cmd/{install,reinstall,upgrade}: ensure that gh
is installed
2024-07-17 14:48:52 -04:00
Nanda H Krishna
51ec743d6f
Remove ensure_gh_installed!
...
Co-authored-by: William Woodruff <william@yossarian.net>
2024-07-17 14:48:52 -04:00
Nanda H Krishna
802eb54e87
Fix tests for attestations
2024-07-17 14:48:50 -04:00
Nanda H Krishna
4d387d285e
Fix type and style errors
2024-07-17 14:46:59 -04:00
Nanda H Krishna
3bb91601fb
Ensure early installation of gh
for attestations
2024-07-17 14:46:58 -04:00
Carlo Cabrera
94592054a8
Merge pull request #17787 from Homebrew/dependabot/bundler/Library/Homebrew/rbi-0.1.14
2024-07-17 20:35:13 +02:00
William Woodruff
30e8aa1aac
Merge pull request #17785 from Homebrew/attestation-chdir
2024-07-17 14:31:50 -04:00
dependabot[bot]
e295fe0cbf
build(deps-dev): bump rbi from 0.1.13 to 0.1.14 in /Library/Homebrew
...
Bumps [rbi](https://github.com/Shopify/rbi ) from 0.1.13 to 0.1.14.
- [Release notes](https://github.com/Shopify/rbi/releases )
- [Commits](https://github.com/Shopify/rbi/compare/v0.1.13...v0.1.14 )
---
updated-dependencies:
- dependency-name: rbi
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-07-17 18:23:10 +00:00
Bo Anderson
f40330c42d
attestation: avoid touching working directory
2024-07-17 19:18:09 +01:00
Carlo Cabrera
4025df1929
Merge pull request #17786 from Homebrew/git-submodule-uid
2024-07-17 19:12:01 +02:00
Carlo Cabrera
49b27767aa
download_strategy: fix UID handling for Git submodules
...
Source builds that use Git checkouts with submodules can choke when the
process UID does not match its EUID.
We can fix this by using the `reset_uid` option added in #17782 .
2024-07-17 18:59:02 +02:00
Bo Anderson
f84b8ebf69
Merge pull request #17782 from Homebrew/system_command-uid
...
Fix UID handling with cask `installer script:`
2024-07-17 16:07:20 +01:00
Carlo Cabrera
ce31ab8b4d
Merge pull request #17783 from shivammathur/fix-pr-req
2024-07-17 11:20:48 +02:00
Shivam Mathur
7b604ef924
dev-cmd/pr-automerge: add missing require
2024-07-17 05:56:20 +00:00
Bo Anderson
ec41f66ee7
cask/artifact/installer: reset UID when running scripts
2024-07-17 06:33:08 +01:00
Bo Anderson
19617cb161
system_command: add reset_uid option
2024-07-17 06:33:03 +01:00
Issy Long
2cdc092a26
Merge pull request #17780 from Homebrew/fix-more-types
...
formula_assertions: Fix `pipe_output` type sig
2024-07-16 22:18:44 -04:00
Issy Long
5ab32eeadb
formula_assertions: Fix pipe_output
type sig
...
```
❯ brew test zstd
==> Testing zstd
Error: zstd: failed
An exception occurred within a child process:
TypeError: Parameter 'cmd': Expected type String, got type Pathname with value #<Pathname:/opt/homebrew/Cellar/zstd/1.5.6/bin/zstd>
Caller: /opt/homebrew/Library/Taps/homebrew/homebrew-core/Formula/z/zstd.rb:58
Definition: /opt/homebrew/Library/Homebrew/formula_assertions.rb:40 (Homebrew::Assertions#pipe_output)
```
2024-07-16 22:07:31 -04:00
Kevin Montag
74a84a0d12
Fix missing requires for tap-info
command
...
Previously, running `brew tap-info --installed --json` in a github
actions linux runner would throw:
```
Error: uninitialized constant Homebrew::API
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/tap.rb:1359:in `formula_names'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/tap.rb:868:in `to_hash'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/cmd/tap-info.rb:87:in `map'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/cmd/tap-info.rb:87:in `print_tap_json'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/cmd/tap-info.rb:37:in `run'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/brew.rb:95:in `<main>'
```
After the setup steps:
```
steps:
- name: Set up Homebrew
id: set-up-homebrew
uses: Homebrew/actions/setup-homebrew@master
with:
token: ${{ github.token }}
- name: Cache Homebrew Bundler RubyGems
id: cache
uses: actions/cache@v3
with:
path: ${{ steps.set-up-homebrew.outputs.gems-path }}
key: ${{ runner.os }}-rubygems-${{ steps.set-up-homebrew.outputs.gems-hash }}
restore-keys: ${{ runner.os }}-rubygems-
- name: Install Homebrew Bundler RubyGems
if: steps.cache.outputs.cache-hit != 'true'
run: brew install-bundler-gems
```
2024-07-16 21:19:37 +02:00
Rylan Polster
9538f424b5
Merge pull request #17762 from samford/formula-require-utils-backtrace
2024-07-16 12:41:19 -04:00
Patrick Linnane
6672e6bd18
Merge pull request #17776 from Homebrew/dependabot/bundler/Library/Homebrew/rexml-3.3.2
2024-07-16 09:37:18 -07:00
Patrick Linnane
dce9d09134
Merge pull request #17777 from Homebrew/dependabot/bundler/Library/Homebrew/rubocop-sorbet-0.8.4
2024-07-16 09:36:19 -07:00
BrewTestBot
7ee68e905a
brew vendor-gems: commit updates.
2024-07-16 16:25:08 +00:00
BrewTestBot
948202e743
brew vendor-gems: commit updates.
2024-07-16 16:24:59 +00:00
Bo Anderson
e1d0ccccd2
Merge pull request #17775 from Homebrew/analytics
...
utils/analytics: fix handling of newlines
2024-07-16 17:18:07 +01:00
dependabot[bot]
357a104797
build(deps-dev): bump rubocop-sorbet in /Library/Homebrew
...
Bumps [rubocop-sorbet](https://github.com/shopify/rubocop-sorbet ) from 0.8.3 to 0.8.4.
- [Release notes](https://github.com/shopify/rubocop-sorbet/releases )
- [Commits](https://github.com/shopify/rubocop-sorbet/compare/v0.8.3...v0.8.4 )
---
updated-dependencies:
- dependency-name: rubocop-sorbet
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-07-16 16:16:44 +00:00
dependabot[bot]
c557dff7b1
build(deps-dev): bump rexml from 3.3.1 to 3.3.2 in /Library/Homebrew
...
Bumps [rexml](https://github.com/ruby/rexml ) from 3.3.1 to 3.3.2.
- [Release notes](https://github.com/ruby/rexml/releases )
- [Changelog](https://github.com/ruby/rexml/blob/master/NEWS.md )
- [Commits](https://github.com/ruby/rexml/compare/v3.3.1...v3.3.2 )
---
updated-dependencies:
- dependency-name: rexml
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-07-16 16:16:26 +00:00