31955 Commits

Author SHA1 Message Date
Carlo Cabrera
a597a1eecb
Reverse order of if conditional
Checking for readability is a cheaper operation that `git diff-index`.
2024-08-28 18:58:27 +08:00
Carlo Cabrera
58ea96583f
brew.sh: use read instead of cat
This will be slightly more efficient since it can be done in-process.
2024-08-25 04:06:30 +08:00
Carlo Cabrera
13115fee7d
brew.sh: fix handling of dirty git repo
We cache the output of `git describe`, but we don't check whether the
cached value is valid.

This fixes that.
2024-08-25 02:57:35 +08:00
BrewTestBot
e63748bf03
sorbet: Update RBI files.
Autogenerated by the [sorbet](https://github.com/Homebrew/brew/blob/master/.github/workflows/sorbet.yml) workflow.
2024-08-24 00:21:44 +00:00
Carlo Cabrera
1871e822ec
Merge pull request #18140 from Homebrew/dependabot/bundler/Library/Homebrew/sorbet-0.5.11537 2024-08-24 02:57:22 +08:00
BrewTestBot
fc6742d464
brew vendor-gems: commit updates. 2024-08-23 18:43:44 +00:00
dependabot[bot]
db08466d35
build(deps-dev): bump rbs from 3.5.2 to 3.5.3 in /Library/Homebrew
Bumps [rbs](https://github.com/ruby/rbs) from 3.5.2 to 3.5.3.
- [Release notes](https://github.com/ruby/rbs/releases)
- [Changelog](https://github.com/ruby/rbs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/ruby/rbs/compare/v3.5.2...v3.5.3)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-23 18:12:03 +00:00
dependabot[bot]
75d24d7bd9
build(deps-dev): bump sorbet in /Library/Homebrew
Bumps [sorbet](https://github.com/sorbet/sorbet) from 0.5.11535 to 0.5.11537.
- [Release notes](https://github.com/sorbet/sorbet/releases)
- [Commits](https://github.com/sorbet/sorbet/commits)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-23 18:11:27 +00:00
Mike McQuaid
72dec98721
Merge pull request #18138 from cho-m/gnu-tar-bottle 2024-08-23 17:22:16 +01:00
Bo Anderson
0ae1dbeacf
Add typing for Cask#url and fix detected issues 2024-08-23 16:39:23 +01:00
Michael Cho
f627c70b71
dev-cmd/bottle: use default tar when bottling gnu-tar 2024-08-23 11:14:34 -04:00
Carlo Cabrera
54f73e5ec8
formula_auditor: fix typechecking failure
Seen at Homebrew/homebrew-core#182065.

https://github.com/Homebrew/homebrew-core/actions/runs/10522724092/job/29156069899?pr=182065#step:3:44
2024-08-23 17:19:02 +08:00
Mike McQuaid
d1e0c078bc
Merge pull request #18128 from cho-m/python-avoid-modifying-all-links 2024-08-23 08:07:45 +01:00
Mike McQuaid
69ae7eecd6
Merge pull request #18129 from cho-m/python-macos-linux-diffs 2024-08-23 08:07:25 +01:00
Mike McQuaid
9ee471d42c
Merge pull request #18133 from FnControlOption/ls 2024-08-23 08:06:49 +01:00
Mike McQuaid
32bba8ace1
Merge pull request #18134 from Homebrew/env-not-superenv 2024-08-23 08:05:54 +01:00
Mike McQuaid
c51a635a48
Merge pull request #18132 from Homebrew/envmethods 2024-08-23 08:05:18 +01:00
Mike McQuaid
ac530f219e
Merge pull request #18130 from Homebrew/livecheck-module_function 2024-08-23 08:04:58 +01:00
Bo Anderson
98fb5f9dea
Don't assume ENV is a superenv in RBI 2024-08-23 05:59:00 +01:00
fn ⌃ ⌥
9c79f2cc5c Fix test 2024-08-22 21:48:12 -07:00
Bo Anderson
d24686ac50
extend/ENV: remove fake EnvMethods from RBI 2024-08-23 05:28:52 +01:00
fn ⌃ ⌥
6287607ac5 cmd/list: add --poured-from-bottle and --built-from-source 2024-08-22 21:26:16 -07:00
Bo Anderson
f877fc5058
livecheck: remove module_function 2024-08-23 04:57:28 +01:00
Bo Anderson
092dcdbeac
shared_audits: remove module_function 2024-08-23 03:34:48 +01:00
Michael Cho
36dc83c9e4
language/python: reduce some differences between macOS and Linux venv 2024-08-22 21:09:58 -04:00
Michael Cho
0e8db0155a
language/python: avoid modifying all Python symlinks
Homebrew Python will always have a realpath in HOMEBREW_CELLAR. Instead,
check if the symlink target points to HOMEBREW_CELLAR.
2024-08-22 19:19:19 -04:00
Carlo Cabrera
4482e25cb2
Merge pull request #18125 from Homebrew/dependabot/bundler/Library/Homebrew/sorbet-0.5.11535 2024-08-23 02:03:40 +08:00
BrewTestBot
1a32bcae24
brew vendor-gems: commit updates. 2024-08-22 17:48:57 +00:00
BrewTestBot
5ad56b0080
brew vendor-gems: commit updates. 2024-08-22 17:48:14 +00:00
dependabot[bot]
63f8f372db
build(deps-dev): bump sorbet in /Library/Homebrew
Bumps [sorbet](https://github.com/sorbet/sorbet) from 0.5.11532 to 0.5.11535.
- [Release notes](https://github.com/sorbet/sorbet/releases)
- [Commits](https://github.com/sorbet/sorbet/commits)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-22 17:47:40 +00:00
dependabot[bot]
b40208d02b
build(deps-dev): bump rexml from 3.3.5 to 3.3.6 in /Library/Homebrew
Bumps [rexml](https://github.com/ruby/rexml) from 3.3.5 to 3.3.6.
- [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.5...v3.3.6)

---
updated-dependencies:
- dependency-name: rexml
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-22 17:46:42 +00:00
Issy Long
21979c097e
Merge pull request #18119 from Homebrew/sorbet-no-formula-or-casks
sorbet: Ignore `Formula` and `Casks` directories
2024-08-21 21:33:18 +01:00
Issy Long
dc0cb32520
sorbet: Ignore Formula and Casks directories
- These get in the way of typechecking `cmd` Ruby
  scripts in package taps, and we don't want formulae
  or casks to be considered for typing.
2024-08-21 21:05:22 +01:00
Patrick Linnane
3baedec92d
Merge pull request #18116 from Homebrew/dependabot/bundler/Library/Homebrew/sorbet-0.5.11532 2024-08-21 11:30:15 -07:00
BrewTestBot
21c08fd434
Update RBI files for ruby-lsp.
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gems.yml) workflow.
2024-08-21 18:17:25 +00:00
BrewTestBot
09c6e96543
brew vendor-gems: commit updates. 2024-08-21 18:17:19 +00:00
BrewTestBot
74eeb2e817
brew vendor-gems: commit updates. 2024-08-21 18:17:09 +00:00
dependabot[bot]
8004cf97b2
build(deps-dev): bump ruby-lsp in /Library/Homebrew
Bumps [ruby-lsp](https://github.com/Shopify/ruby-lsp) from 0.17.14 to 0.17.15.
- [Release notes](https://github.com/Shopify/ruby-lsp/releases)
- [Commits](https://github.com/Shopify/ruby-lsp/compare/v0.17.14...v0.17.15)

---
updated-dependencies:
- dependency-name: ruby-lsp
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-21 18:14:56 +00:00
dependabot[bot]
def29f6cd2
build(deps-dev): bump sorbet in /Library/Homebrew
Bumps [sorbet](https://github.com/sorbet/sorbet) from 0.5.11531 to 0.5.11532.
- [Release notes](https://github.com/sorbet/sorbet/releases)
- [Commits](https://github.com/sorbet/sorbet/commits)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-21 18:14:26 +00:00
Lukas Eipert
915917f4d2 Rosetta audit: Build full executable path
The method only returned the executable name and not the full path,
leading to a swallowed error, because brew gracefully ignores a
failing lipo command.
2024-08-21 13:19:57 +02:00
Mike McQuaid
4362955bfc
Merge pull request #18107 from mistydemeo/dev_cmd_fix_types 2024-08-21 10:10:48 +01:00
Mike McQuaid
b3082182f4
Merge pull request #18109 from leipert/leipert-fix-rosetta-audit 2024-08-21 09:53:30 +01:00
Mike McQuaid
d5b7de5f02
Merge pull request #18102 from Homebrew/requires_ancestor 2024-08-21 09:06:31 +01:00
Lukas Eipert
8814a492aa Use plist main binary for Rosetta audit
Currently `brew audit` only audits the first binary in a cask.
For example the cask `wiso-steuer-2024` contains multiple binaries in
`Contents/MacOS`:
- `btssysteminfo`
- `whilfe`
- `wmain24`

The first binary (some telemetry tool) is not the main binary and not
a universal binary, but the other two are. Given that `wmain24` is
defined as the main binary in the `Contents/Info.plist`, brew probably
should audit that binary rather than just checking the first one.
2024-08-21 10:01:20 +02:00
Mike McQuaid
08c7044598
dev-cmd/edit: simplify flag check.
Co-authored-by: Carlo Cabrera <30379873+carlocab@users.noreply.github.com>
2024-08-21 08:51:04 +01:00
Ruoyu Zhong
4b12a5b944
Merge pull request #18103 from Homebrew/dependabot/bundler/Library/Homebrew/sorbet-0.5.11531
build(deps-dev): bump sorbet from 0.5.11528 to 0.5.11531 in /Library/Homebrew
2024-08-21 08:22:00 +08:00
Misty De Méo
89af10f29a dev-cmd/edit: correct path types
* Avoids passing the `--project` pseudopath to path checking methods
* Ensures the project path is a Pathname, not a String
2024-08-20 16:30:43 -07:00
BrewTestBot
97775ed7d3
Update RBI files for sorbet.
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gems.yml) workflow.
2024-08-20 22:01:03 +00:00
BrewTestBot
c2a5313cca
brew vendor-gems: commit updates. 2024-08-20 22:00:45 +00:00
Mike McQuaid
93234387fb
Merge pull request #18088 from Homebrew/api-analytics-typed-strict 2024-08-20 20:57:58 +01:00