28530 Commits

Author SHA1 Message Date
BrewTestBot
1f8f00ca45
Update RBI files for json_schemer.
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gems.yml) workflow.
2023-08-21 18:44:31 +00:00
BrewTestBot
f76fef0c79
brew vendor-gems: commit updates. 2023-08-21 18:34:47 +00:00
dependabot[bot]
01fe2149d7
build(deps): bump json_schemer from 1.0.3 to 2.0.0 in /Library/Homebrew
Bumps [json_schemer](https://github.com/davishmcclurg/json_schemer) from 1.0.3 to 2.0.0.
- [Changelog](https://github.com/davishmcclurg/json_schemer/blob/main/CHANGELOG.md)
- [Commits](https://github.com/davishmcclurg/json_schemer/compare/v1.0.3...v2.0.0)

---
updated-dependencies:
- dependency-name: json_schemer
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-21 18:29:59 +00:00
Bo Anderson
fe8f6dfc8d
dev-cmd/prof: bleed less of the environment from gem installs 2023-08-21 14:22:47 +01:00
Mike McQuaid
3cd72905ce
Merge pull request #15889 from MikeMcQuaid/gnu_tar_deps_bottling
dev-cmd/bottle: install gnu-tar before keg lock.
2023-08-18 12:42:42 +01:00
Mike McQuaid
e7dc14c015
dev-cmd/bottle: install gnu-tar before keg lock.
This allows the correct bottling of `gnu-tar` dependencies (and
`gnu-tar` itself). It also installs `gnu-tar` at a more appropriate
time in the `brew bottle` command.
2023-08-18 11:03:22 +01:00
Dawid Dziurla
b4366b61ef
audit: check for cargo build only in install method 2023-08-18 11:20:56 +02:00
Muneeb Ahmed
8a14d5cf4e Fix cask dependency discovery 2023-08-17 04:16:02 -07:00
BrewTestBot
cf18752b74
sorbet: Update RBI files.
Autogenerated by the [sorbet](https://github.com/Homebrew/brew/blob/master/.github/workflows/sorbet.yml) workflow.
2023-08-17 00:24:19 +00:00
Sam Ford
1d404e437b
dev-cmd/livecheck: avoid watchlist in test
The existing watchlist test in `dev-cmd/livecheck_spec.rb` will only
pass if the testing environment doesn't contain a livecheck watchlist
file. When a watchlist file is present, it ends up being treated as
empty (formulae and casks aren't available in tests) and produces an
`Invalid usage: No formulae or casks to check` error instead. We don't
have to worry about a watchlist file on CI but it's a potential issue
when running `brew test` locally.

This provides a bogus `HOMEBREW_LIVECHECK_WATCHLIST` value to the
`#brew` call, to ensure that any watchlist file in the testing
environment is not used for this test.

Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
2023-08-16 15:08:34 -04:00
Mike McQuaid
e475de2a4a
Merge pull request #15880 from MikeMcQuaid/more_service_quoting
service: handle quoting in service file, too.
2023-08-16 14:34:39 +01:00
Mike McQuaid
2d133ba1a6
cmd/update-report: improve tap/untap behaviour.
- unify core tapping/untapping behaviour (so we can never tap and then
  immediately untap)
- automatically untap homebrew-core or homebrew-cask if it's old, on
  the default branch and it doesn't seem to be needed
- if we think it's unneeded but it's too new: output a message instead

Co-authored-by: Carlo Cabrera <30379873+carlocab@users.noreply.github.com>
2023-08-16 14:06:26 +01:00
Mike McQuaid
6cb8f3d7e0
service: handle quoting in service file, too.
Follow-up to https://github.com/Homebrew/brew/pull/15875 based on
https://github.com/Homebrew/homebrew-core/pull/139680#discussion_r1295770047
2023-08-16 13:58:03 +01:00
Mike McQuaid
2038481909
Merge pull request #15875 from MikeMcQuaid/service_quote_args
service: correctly quote arguments.
2023-08-16 12:25:54 +01:00
Mike McQuaid
6d65ec3afb
service: correctly quote arguments.
If you have a run argument with a space in it: it will need to be quoted
to be passed through correctly when run as a manual command.

Fixes #15871.
2023-08-16 12:03:40 +01:00
Mike McQuaid
6335728b61
brew.sh: fix shellcheck warning.
Fixes #15876.
2023-08-16 12:01:25 +01:00
Mike McQuaid
020508b7b3
Merge pull request #15874 from p-linnane/quieter-livecheck
Livecheck: allow quiet output with `--newer-only`
2023-08-16 08:41:25 +01:00
Mike McQuaid
b3db5c7af7
Merge pull request #15873 from Bo98/bundler-2.4
utils/gems: update to Bundler 2.4
2023-08-16 08:33:48 +01:00
Patrick Linnane
1c4073df38
Livecheck: allow quiet output with --newer-only 2023-08-15 17:43:36 -07:00
Bo Anderson
444ee7fd44
brew vendor-gems: commit updates. 2023-08-16 01:34:19 +01:00
Bo Anderson
fdd18a4b79
utils/gems: update to Bundler 2.4 2023-08-16 01:34:16 +01:00
BrewTestBot
86b2837b7c
sorbet: Update RBI files.
Autogenerated by the [sorbet](https://github.com/Homebrew/brew/blob/master/.github/workflows/sorbet.yml) workflow.
2023-08-16 00:25:52 +00:00
Mike McQuaid
4c87937b98
Merge pull request #15869 from MikeMcQuaid/formula_installer_previously_fetched_formula_comment
formula_installer: improve a comment.
2023-08-15 14:58:44 +01:00
Mike McQuaid
8430acf7ba
formula_installer: improve a comment.
Based on:
https://github.com/Homebrew/brew/pull/15778#discussion_r1294477218
2023-08-15 14:44:35 +01:00
Mike McQuaid
98c8dd01e4
Merge pull request #15868 from MikeMcQuaid/more_install_from_api_again
brew.sh: don't set `HOMEBREW_NO_INSTALL_FROM_API` automatically.
2023-08-15 14:27:06 +01:00
Mike McQuaid
72d25a21df
Merge pull request #15853 from clint-stripe/clint/pass_through_curl_home
Allow HOMEBREW_CURLRC to specify a path for curl `--config`
2023-08-15 11:42:26 +01:00
Mike McQuaid
1481eac57c
brew.sh: don't set HOMEBREW_NO_INSTALL_FROM_API automatically.
My understanding is that now https://github.com/Homebrew/brew/pull/15778
has been merged this should now work fine on both older macOS versions
and non-default prefixes so let's try this again.
2023-08-15 11:42:02 +01:00
Mike McQuaid
8c460bdde6
Merge pull request #15861 from samford/node-add-shebang-rewriting
node: add shebang rewriting
2023-08-15 11:39:13 +01:00
Mike McQuaid
d7268aeb18
Merge pull request #15778 from Bo98/dep-source-fix
formula_installer: use cached fetched formula instance when available
2023-08-15 11:37:26 +01:00
Mike McQuaid
0d29831473
Merge pull request #15865 from MikeMcQuaid/formula_versions_sharding
formula_{auditor,versions}: handle sharding.
2023-08-15 11:29:57 +01:00
Clint Harrison
4ade9351e4
Allow HOMEBREW_CURLRC to provide a path for curl --config
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
Co-authored-by: Carlo Cabrera <30379873+carlocab@users.noreply.github.com>
2023-08-15 11:29:02 +01:00
Sam Ford
4314daa2cf
python: expand and refactor tests
This brings coverage of `Language::Python::Shebang` to 100%.
2023-08-15 00:53:41 -04:00
Sam Ford
87935f8d0f
perl: expand and refactor tests
This brings coverage of `Language::Perl::Shebang` to 100%.
2023-08-15 00:53:41 -04:00
Sam Ford
0b3e3b7270
python: refactor to align Shebang modules
This reworks `Language::Python::Shebang` to use constants for
the shebang regex and max length (like the previous Node commit).
Besides that, this also adds type signatures to the existing methods.
2023-08-15 00:53:41 -04:00
Sam Ford
370e61e504
perl: refactor to align Shebang modules
This primarily reworks `Language::Perl::Shebang` to use constants for
the shebang regex and max length (like the previous Node commit) and
to extract the `RewriteInfo` call into a separate method (like Python
and Node).

Besides that, this also adds type signatures to the methods.
2023-08-15 00:53:41 -04:00
Sam Ford
d1297c0974
node: add shebang rewriting
Formulae that depend on `node` sometimes contain files that use a
shebang like `#!/usr/bin/env node` and this can lead to issues when
the `node` in a user's environment isn't brewed `node`.

For example, some node modules are compiled when the formula is built
but if the user's `node` is a different major version than brew's
`node`, the differing `NODE_MODULE_VERSION` can produce an error when
certain parts of the application are used. The formula may build and
test fine and the issue may only become apparent when more of the
application is exercised.

This adds a `Language::Node::Shebang` module (borrowing from the
existing Perl and Python examples), which allows us to use
`rewrite_shebang detected_node_shebang, ...` in formulae to address
this type of issue.
2023-08-15 00:53:41 -04:00
Bo Anderson
d30b68715f
Merge pull request #15866 from MikeMcQuaid/update_report_sharding_add_delete
cmd/update-report: correctly handle added/deleted formulae/casks.
2023-08-15 03:07:50 +01:00
BrewTestBot
ebdea56cd8
sorbet: Autobump sigils via Spoom
Autogenerated by the [sorbet](https://github.com/Homebrew/brew/blob/master/.github/workflows/sorbet.yml) workflow.
2023-08-15 00:25:50 +00:00
BrewTestBot
3c9dce0ac6
sorbet: Update RBI files.
Autogenerated by the [sorbet](https://github.com/Homebrew/brew/blob/master/.github/workflows/sorbet.yml) workflow.
2023-08-15 00:25:50 +00:00
Mike McQuaid
8d1064cdb1
formula_{auditor,versions}: handle sharding.
Ensure that `FormulaVersions` correctly also looks at older paths for
sharded formulae.

While we're here, also cleanup `FormulaVersions` a bit to have more
signatures, cleanup dead code, make more code private, improve
variable naming.
2023-08-14 19:31:15 +01:00
Mike McQuaid
38f00671c4
cmd/update-report: correctly handle added/deleted formulae/casks.
If a formulae or cask is marked as both added and deleted, we've just
incorrectly detected it. Remove it from the report.

This can happen when a formula or cask is moved around in the repository
e.g. with sharding.
2023-08-14 19:28:56 +01:00
Mike McQuaid
0bd17c5b79
Merge pull request #15863 from dduugg/strict-types
Turn up the types
2023-08-14 12:40:15 +01:00
Carlo Cabrera
93b43ad7a9
os/mac/mach: fix rpath deletion of fat machos
Fixes #15859.
2023-08-14 14:29:05 +08:00
Douglas Eichelberger
d01cda2815 Turn up the types 2023-08-12 22:01:22 -07:00
Eric Knibbe
569c833924
Formula-Cookbook: expand terminology table 2023-08-12 21:48:16 -04:00
Mike McQuaid
597f0840a3
dev-cmd/tests: add --fail-fast.
This is useful when testing very slow test files with many tests.
2023-08-10 16:27:37 +01:00
Mike McQuaid
22553cd34a
Fix cask sharding issues
- Fix cask info output being incorrect
- Improve some code referring to casks as formulae
- Move livecheck cask fixtures to not shadow existing names
- Adjust the cask tap symlinking logic to make handling outdated
  shadowed casks significantly easier
- Fix various flaky tests caused by casks sharding logic
- Prefer longer paths when there's multiple formulae or casks in a tap
  with the same name rather than always using the first
2023-08-10 16:08:47 +01:00
Razvan Azamfirei
72df964b33
change path 2023-08-09 15:27:36 -04:00
Razvan Azamfirei
a916d6184b
Update Library/Homebrew/cask/audit.rb
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
2023-08-09 15:26:47 -04:00
Razvan Azamfirei
ef9e0bc8a6
cask/audit: audit for appropriate sharding directory 2023-08-09 14:52:30 -04:00