36404 Commits

Author SHA1 Message Date
Patrick Linnane
790c327c5b
.python-version: bump to 3.13
Signed-off-by: Patrick Linnane <patrick@linnane.io>
2025-08-13 10:12:39 -07:00
Patrick Linnane
c1341c2800
formula-analytics: update dependencies
Signed-off-by: Patrick Linnane <patrick@linnane.io>
2025-08-13 10:06:50 -07:00
copilot-swe-agent[bot]
cfa7326620
Improve error message for local formula file installation attempts
Co-authored-by: MikeMcQuaid <125011+MikeMcQuaid@users.noreply.github.com>
2025-08-13 17:29:43 +01:00
Mike McQuaid
c2fbebb96d
Merge pull request #20420 from Homebrew/copilot/fix-19743
Implement selective path replacement for /usr/local to fix bottle creation issues
2025-08-13 15:42:49 +00:00
copilot-swe-agent[bot]
9328a55c54
Fix overzealous /usr/local prefix replacement
Co-authored-by: MikeMcQuaid <125011+MikeMcQuaid@users.noreply.github.com>
2025-08-13 16:22:09 +01:00
Mike McQuaid
332af0d5ef
Merge pull request #20445 from Homebrew/bump-cask-pr-ensure-new_cask-has-url
bump-cask-pr: ensure new_cask has a url
2025-08-13 14:26:34 +00:00
Sam Ford
76a54d1455
bump-cask-pr: ensure new_cask has a url
We sometimes see errors like "attempted to use a `Downloadable`
without a URL!" in the homebrew/cask autobump workflow log because
`bump-cask-pr` can simulate Linux even if a cask doesn't support it,
leading to this error. This is something that should be resolved in
the future once I finally wrap up my related work to detect OS/arch
requirements but this adds a simple guard to address this in the
interim time.
2025-08-13 10:01:49 -04:00
copilot-swe-agent[bot]
4ee43fbde1
Improve quarantine support error messages with specific CLT guidance
Co-authored-by: MikeMcQuaid <125011+MikeMcQuaid@users.noreply.github.com>
2025-08-13 14:30:05 +01:00
Carlo Cabrera
d9c661a34e
Fix brew style errors 2025-08-13 18:07:17 +08:00
HuaDeity
dd0e187eb5
Fix HEAD installations with HOMEBREW_FORBID_PACKAGES_FROM_PATHS
- Allow cache paths in FromPathLoader when HOMEBREW_FORBID_PACKAGES_FROM_PATHS is set
- Fixes issue where HEAD installations fail due to temporary source downloads
- Add test case to verify cache paths are allowed when path restrictions are enabled

The issue occurred because HEAD installations download formula sources to cache
directories, but HOMEBREW_FORBID_PACKAGES_FROM_PATHS only allowed paths from
HOMEBREW_CELLAR and HOMEBREW_LIBRARY/Taps, causing the installation to fail.

Closes: homebrew/brew#issue-number
2025-08-13 17:57:55 +08:00
Carlo Cabrera
a4ea97016a
Improve error handling when determining parent process path 2025-08-13 17:54:29 +08:00
Carlo Cabrera
b2d14aff4d
Add custom implementations for brew_wrapper and no_force_brew_wrapper? 2025-08-13 17:17:52 +08:00
Mike McQuaid
ec207feca4
Merge pull request #20418 from Homebrew/copilot/fix-16137
Add diagnostic check for pkg-config macOS SDK version mismatch
2025-08-13 08:18:28 +00:00
copilot-swe-agent[bot]
4ad7d59a25
Implement pkg-config macOS SDK mismatch diagnostic check
Co-authored-by: MikeMcQuaid <125011+MikeMcQuaid@users.noreply.github.com>
2025-08-13 09:03:26 +01:00
Mike McQuaid
2525bd2b37
Merge pull request #20430 from Homebrew/use-api-helper-methods
Use API helper methods to manage toggling the internal API
2025-08-13 07:50:45 +00:00
Issy Long
d7b59fdfe8
Merge pull request #20402 from Homebrew/head-url-must-always-specify-branch
Ensure that `head` Git URLs always specify a branch name
2025-08-13 07:47:21 +00:00
Carlo Cabrera
b7d8072575
Restore handling of HOMEBREW_BREW_WRAPPER
This now requires `HOMEBREW_DISABLE_NO_FORCE_BREW_WRAPPER` to be unset.
If it is set (but only in a `brew.env` file), then we use the new
functionality of checking the path of the parent process.
2025-08-13 14:41:46 +08:00
Ruoyu Zhong
40da6c1e16
formula: improve variable naming
`log_filename` sounds better than `logfn`.
2025-08-13 14:27:04 +08:00
Carlo Cabrera
144c7f6edf
Restore HOMEBREW_BREW_WRAPPER and HOMEBREW_FORCE_BREW_WRAPPER
These need to go through a deprecation cycle, so let's just add comments
preparing it for that.
2025-08-13 14:22:44 +08:00
Carlo Cabrera
e8828c152d
Apply review suggestions for pid_path.rb
Co-authored-by: MikeMcQuaid <125011+MikeMcQuaid@users.noreply.github.com>
2025-08-13 13:55:33 +08:00
Carlo Cabrera
e0a69316b7
Merge pull request #20434 from Homebrew/new-protodesc_cold-fix
os/linux/keg_relocate: skip ELF files with `protodesc_cold` only when bottling
2025-08-13 04:07:32 +00:00
Carlo Cabrera
c9060c3242
Improve test for bottling 2025-08-13 09:51:27 +08:00
BrewTestBot
89313bb429
sorbet: Update RBI files.
Autogenerated by the [sorbet](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/sorbet.yml) workflow.
2025-08-13 00:30:32 +00:00
Rylan Polster
9a3fe8869c
Add Homebrew::EnvConfig.use_internal_api? 2025-08-12 17:18:08 -04:00
Rylan Polster
fe3aec30bb
Fetch new API 2025-08-12 17:04:15 -04:00
Rylan Polster
0f9fb4f29a
Use API helper methods 2025-08-12 17:04:15 -04:00
Mike McQuaid
20eb1e15b8
Merge pull request #20416 from Homebrew/copilot/fix-18036
Add brew doctor warning for symlinked /home directories on Linux
2025-08-12 17:57:27 +00:00
Mike McQuaid
96268175c5
Merge pull request #20417 from Homebrew/copilot/fix-16309
Fix cask installation conflicts with same-named formula binaries
2025-08-12 17:21:51 +00:00
Mike McQuaid
d5b0809166
Merge pull request #20414 from Homebrew/copilot/fix-18371
Don't allow installing formulae from paths without HOMEBREW_DEVELOPER
2025-08-12 16:54:06 +00:00
Carlo Cabrera
6457770a59
os/linux/keg_relocate: skip ELF files with protodesc_cold only when bottling
We removed this exclusion in #20423 because it broke pouring of existing
bottles, which still need relocation.

Let's skip relocation only when bottling, to avoid breaking existing
bottles that need to be relocated when pouring.
2025-08-13 00:25:53 +08:00
Ruoyu Zhong
6f3f2d7317
formula: improve log filename handling
Fixes 718b82560a (commitcomment-163850325).
2025-08-12 22:46:41 +08:00
Bevan Kay
9cb2b65319
cask/dsl/rename: add new rename dsl 2025-08-12 23:24:20 +10:00
Carlo Cabrera
e16be4672a
Merge pull request #20431 from Homebrew/rustc_wrapper-fix
shims/super/rustc_wrapper: fix comment
2025-08-12 13:22:08 +00:00
copilot-swe-agent[bot]
d785e2024b
Add symlinked home detection to brew doctor on Linux
Co-authored-by: MikeMcQuaid <125011+MikeMcQuaid@users.noreply.github.com>
2025-08-12 11:00:14 +01:00
copilot-swe-agent[bot]
cbe347782c
Implement formula conflict detection for cask binary artifacts
While we're at it, update copilot instructions.

Co-authored-by: MikeMcQuaid <125011+MikeMcQuaid@users.noreply.github.com>
2025-08-12 10:42:51 +01:00
copilot-swe-agent[bot]
e22af11388
Prevent installing formulae from paths without HOMEBREW_DEVELOPER
Co-authored-by: MikeMcQuaid <125011+MikeMcQuaid@users.noreply.github.com>
2025-08-12 09:54:21 +01:00
Mike McQuaid
b8c82b44b8
Merge pull request #20425 from Homebrew/internal-api-helper
Create `Homebrew::API::Internal` for working with internal API
2025-08-12 07:32:18 +00:00
Mike McQuaid
e9bc015f9a
Merge pull request #20429 from Homebrew/simplify-to-hash-with-variations-from-api
Store API data in formulae/casks for use in `to_hash_with_variations`
2025-08-12 07:25:34 +00:00
Rylan Polster
cf450d9948
Create Homebrew::API::Internal
Add type aliase and fix cask content issue
2025-08-12 02:40:48 -04:00
Carlo Cabrera
b89d4ef633
shims/super/rustc_wrapper: fix comment
In #20424, we moved `HOMEBREW_RUSTFLAGS` to the end of the compiler
invocation, but didn't update the comment. Let's fix that.

While we're here, let's fix these `shellcheck disable`s.
2025-08-12 14:15:14 +08:00
Ruoyu Zhong
26021c9e36
os/linux/elf: bump to typed: strict
Also, clean up an unused method (`elf_parser`) from a previous conflict
resolution.

Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
2025-08-12 10:25:40 +08:00
Rylan Polster
8aabee74a6
Store cask API data for use in to_hash_with_variations 2025-08-11 22:06:07 -04:00
Rylan Polster
8dccdd8e60
Store formula API data for use in to_hash_with_variations 2025-08-11 22:06:07 -04:00
Rylan Polster
ff5edb73c2
Don't query analytics for third-party formulae/casks in brew info 2025-08-11 18:54:09 -04:00
Rylan Polster
5e2b54881c
Use hash for internal cask API 2025-08-11 15:03:05 -04:00
Mike McQuaid
bcc3a0dbef
Merge pull request #20424 from Homebrew/rustc_wrapper
rustc_wrapper: pass `HOMEBREW_RUSTFLAGS` last
2025-08-11 17:01:40 +00:00
Carlo Cabrera
63a8fd7a4a
rustc_wrapper: pass HOMEBREW_RUSTFLAGS last
If we pass it first, it can be overridden by other arguments passed on
the command line. We don't want that.

See discussion at Homebrew/homebrew-core#232566.
2025-08-12 00:46:05 +08:00
Carlo Cabrera
ef89522446
os/linux/keg_relocate: remove protodesc_cold exclusion
This needs to be handled more carefully. It probably works fine for
bottles built *after* this change was added, but it breaks bottles built
before this exclusion was added.

Let's remove it for now to limit the extent of the breakage.
2025-08-12 00:27:39 +08:00
Mike McQuaid
04b47bc1aa
Merge pull request #20406 from Homebrew/alias-rename-migrations-internal-api
Cleanup internal API handling
2025-08-11 13:58:38 +00:00
Mike McQuaid
278271c969
Merge pull request #20391 from Homebrew/dug/service-refactor
Simplify Service attr helper methods
2025-08-11 13:36:01 +00:00