31285 Commits

Author SHA1 Message Date
Mike McQuaid
895cd02071
bottle/github_packages: include path_exec_files, all_files.
This provides an extra field to the GitHub Packages manifest about the
executable files in `bin` or `sbin` directories of the bottle.

It also provides an extra GitHub Packages JSON file with the list of all
files.

This would allow us (post a large rebottling effort) to start providing
this information in the Homebrew JSON API.

It also provides a much nicer information source for e.g.
homebrew-command-not-found that doesn't involve downloading actual
bottles.

Co-authored-by: Carlo Cabrera <30379873+carlocab@users.noreply.github.com>
2024-06-15 18:40:07 +01:00
Mike McQuaid
e2d01583f6
Merge pull request #17512 from samford/cask-audit-livecheck-availability-user-agents 2024-06-15 18:28:48 +01:00
John Bampton
f6ee19239d Fix spelling; Github -> GitHub 2024-06-15 19:08:53 +10:00
Bo Anderson
fa00d2a9fd
cask: fix trash.swift under Xcode 16 2024-06-15 03:09:50 +01:00
BrewTestBot
e6f894fc20
sorbet: Update RBI files.
Autogenerated by the [sorbet](https://github.com/Homebrew/brew/blob/master/.github/workflows/sorbet.yml) workflow.
2024-06-15 00:20:54 +00:00
Sam Ford
fcc87c901d
Cask::Audit: Align user agents with livecheck
The `#page_headers` and `#page_content` methods in
`Livecheck::Strategy` will fetch a URL using our default user agent
but if the request fails it will retry with the `:browser` user agent.
[For context, it was added as an interim measure to make URLs work
that require a different user agent but I aim to remove it in the
future in favor of specifying the user agent in a `livecheck` block
(so we don't make unnecessary requests that we know will fail).]

`Cask::Audit#audit_livecheck_https_availability` checks the
`livecheck` block URL but it only does so using our default user
agent (i.e., it calls `#validate_url_for_https_availability` which
calls `Utils::Curl#curl_check_http_content` which has a `user_agents:
[:default]` parameter). Due to this behavioral mismatch, it's possible
for a `livecheck` block to work but for this cask audit to fail.

This addresses the issue by adding `user_agents: [:default, :browser]`
to the arguments the audit uses, which aligns its behavior with
livecheck's.
2024-06-14 15:38:24 -04:00
Mike McQuaid
214359316f
Merge pull request #17506 from shivammathur/actionlint 2024-06-14 18:38:46 +01:00
Shivam Mathur
dbb2bb9fb9 style: ignore runner labels 2024-06-14 17:28:06 +00:00
Mike McQuaid
ff76e61ffc
Merge pull request #17508 from Homebrew/autoremove_bottles 2024-06-14 17:36:56 +01:00
Mike McQuaid
a883f14b72
autoremove: don't remove formulae that were built from source
When a formula was built from source, it should not be removed by
`brew autoremove` as it will take a while to be installed again.

Fixes https://github.com/Homebrew/brew/issues/17433
2024-06-14 17:26:28 +01:00
Mike McQuaid
dcc5659a70
style: reject *.sh directories.
Otherwise silly things happen like thinking formulae.brew.sh directories
are files.
2024-06-14 16:09:21 +01:00
Mike McQuaid
b38e14bce7
Further Portable Ruby cleanup
- Use the `HOMEBREW_PORTABLE_RUBY_VERSION` environment variable to
  determine the version of the Portable Ruby to use in
  `vendor-install.sh` and `ruby.sh`.
- Replace the `docs/.ruby-version` file with a symlink to
 `Library/Homebrew/.ruby-version`.
- Fix an incorrect `HOMEBREW_LIBRARY` comment.
- Use a simpler `HOMEBREW_USING_PORTABLE_RUBY` definition.
2024-06-14 12:22:02 +01:00
Mike McQuaid
9e0cbe0fd7
Rename variable to HOMEBREW_USING_PORTABLE_RUBY 2024-06-14 12:06:06 +01:00
Mike McQuaid
4bfdbe20b9
vendor-install: fix incorrect portable Ruby version reference. 2024-06-14 12:05:01 +01:00
Bo Anderson
24f74c0528
Merge pull request #17501 from Homebrew/portable-ruby-3.3.3
Portable Ruby 3.3.3
2024-06-14 04:34:01 +01:00
Bo Anderson
fa91edadfd
Portable Ruby 3.3.3 2024-06-14 03:32:38 +01:00
Bo Anderson
fa2731d0c7
cmd/setup-ruby: fix Portable Ruby install failing 2024-06-14 02:26:16 +01:00
Ruoyu Zhong
9aeba61fad
Merge pull request #17495 from Homebrew/dependabot/bundler/Library/Homebrew/erubi-1.13.0 2024-06-14 02:51:33 +08:00
Ruoyu Zhong
f985c9d23d
Merge pull request #17493 from Homebrew/dependabot/bundler/Library/Homebrew/sorbet-0.5.11430 2024-06-14 02:51:09 +08:00
BrewTestBot
fba59689de
Update RBI files for rspec-expectations.
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gems.yml) workflow.
2024-06-13 18:17:07 +00:00
BrewTestBot
ef352789ac
brew vendor-gems: commit updates. 2024-06-13 18:16:52 +00:00
BrewTestBot
89e39527de
Update RBI files for erubi.
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gems.yml) workflow.
2024-06-13 18:16:49 +00:00
BrewTestBot
78fa0b5faa
brew vendor-gems: commit updates. 2024-06-13 18:16:35 +00:00
BrewTestBot
6a6bf55d6c
brew vendor-gems: commit updates. 2024-06-13 18:16:11 +00:00
dependabot[bot]
a15d6c9d8c
build(deps-dev): bump rspec-expectations in /Library/Homebrew
Bumps [rspec-expectations](https://github.com/rspec/rspec-expectations) from 3.13.0 to 3.13.1.
- [Release notes](https://github.com/rspec/rspec-expectations/releases)
- [Changelog](https://github.com/rspec/rspec-expectations/blob/main/Changelog.md)
- [Commits](https://github.com/rspec/rspec-expectations/compare/v3.13.0...v3.13.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-13 18:16:01 +00:00
dependabot[bot]
7342471c39
build(deps-dev): bump erubi from 1.12.0 to 1.13.0 in /Library/Homebrew
Bumps [erubi](https://github.com/jeremyevans/erubi) from 1.12.0 to 1.13.0.
- [Changelog](https://github.com/jeremyevans/erubi/blob/master/CHANGELOG)
- [Commits](https://github.com/jeremyevans/erubi/compare/1.12.0...1.13.0)

---
updated-dependencies:
- dependency-name: erubi
  dependency-type: indirect
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-13 18:15:42 +00:00
dependabot[bot]
d343a4007b
build(deps-dev): bump sorbet in /Library/Homebrew
Bumps [sorbet](https://github.com/sorbet/sorbet) from 0.5.11429 to 0.5.11430.
- [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-06-13 18:15:16 +00:00
Mike McQuaid
a707c708c1
Fix/reenable brew style docs
- start running this check again
- check the `docs` basename correctly
- use a different name (to a symlink) for the docs rubocop
  configuration so that path relativity is done correctly:
  https://docs.rubocop.org/rubocop/configuration.html#path-relativity
- add more wildcards to fix docs rubocop exclusions
2024-06-13 12:31:47 +01:00
Mike McQuaid
349627e3dd
style: ignore actionlint false-positive. 2024-06-13 09:55:30 +01:00
Mike McQuaid
9e863aa4a9
style: fix path checking.
Add all necessary files to the path, using globs when necessary.
2024-06-13 09:26:41 +01:00
Sam Ford
af02d94f73
style: fix tap checking
`brew style` tap support was broken in 7d0ac4d (#17357), so now
something like `brew style homebrew/core` exits without checking
anything. This happens because the new file-handling logic doesn't
do anything with a tap path. Previously, a tap path would be added
to `ruby_files` but now it isn't added to any of the arrays of files
to check.

This fixes the issue by adding some logic to add the path to the
`ruby_files` array if it's a tap.
2024-06-13 09:26:41 +01:00
Mike McQuaid
4f35bc1e12
Merge pull request #17449 from Homebrew/brew-mark 2024-06-13 09:11:00 +01:00
Mike McQuaid
1c09f14518
Merge pull request #17488 from Homebrew/fix_docs_style_ci 2024-06-13 08:58:34 +01:00
Mike McQuaid
1e0add6d66
Merge pull request #17373 from tesaguri/cp-reflink 2024-06-13 08:57:20 +01:00
Mike McQuaid
dfe2b5b2ca
style: tweak style.
Co-authored-by: Sam Ford <1584702+samford@users.noreply.github.com>
2024-06-13 08:47:59 +01:00
Ruoyu Zhong
9cd5078efb
cmd/tab: new command
Add `brew tab`, a new command to edit tab information, as previously
discussed in https://github.com/Homebrew/brew/pull/17125#issuecomment-2068473483.
Currently, this supports marking or unmarking formulae as installed on
request.

Sample usage:

    $ brew tab --installed-on-request curl
    ==> curl is now marked as installed on request.
    $ brew autoremove --dry-run
    [no output]
    $ brew tab --no-installed-on-request curl
    ==> curl is now marked as not installed on request.
    $ brew autoremove --dry-run
    ==> Would autoremove 2 unneeded formulae:
    curl
    rtmpdump

Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
2024-06-13 11:44:14 +08:00
Daiki Mizukami
a30cd15a73
extend/os/mac/utils/copy: typed: strict 2024-06-13 06:56:18 +09:00
Ruoyu Zhong
10944cc879
Merge pull request #17484 from Homebrew/dependabot/bundler/Library/Homebrew/parser-3.3.3.0
build(deps-dev): bump parser from 3.3.2.0 to 3.3.3.0 in /Library/Homebrew
2024-06-13 02:48:52 +08:00
Mike McQuaid
ed0d6b7f61
docs: fix brew style 2024-06-12 19:17:17 +01:00
BrewTestBot
e9a5ac20ff
Update RBI files for parser.
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gems.yml) workflow.
2024-06-12 18:10:50 +00:00
BrewTestBot
5bbb805623
brew vendor-gems: commit updates. 2024-06-12 18:07:32 +00:00
BrewTestBot
86ab52377d
brew vendor-gems: commit updates. 2024-06-12 18:07:12 +00:00
dependabot[bot]
901aa69627
build(deps-dev): bump sorbet in /Library/Homebrew
Bumps [sorbet](https://github.com/sorbet/sorbet) from 0.5.11428 to 0.5.11429.
- [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-06-12 18:06:35 +00:00
dependabot[bot]
00b9b64c83
build(deps-dev): bump parser in /Library/Homebrew
Bumps [parser](https://github.com/whitequark/parser) from 3.3.2.0 to 3.3.3.0.
- [Changelog](https://github.com/whitequark/parser/blob/master/CHANGELOG.md)
- [Commits](https://github.com/whitequark/parser/compare/v3.3.2.0...v3.3.3.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-12 18:06:17 +00:00
Leo Heitmann Ruiz
4ac57d85b2 Read ZDOTDIR environment variable 2024-06-12 16:53:43 +02:00
Daiki Mizukami
e4fefc94eb
Utils::Copy: Fix tests for generic OS 2024-06-12 19:30:04 +09:00
Mike McQuaid
dce94717a9
Merge pull request #17480 from Homebrew/version-cleanup 2024-06-12 08:41:23 +01:00
Daiki Mizukami
8e8d0c0248
brew style --fix 2024-06-12 12:28:42 +09:00
Bo Anderson
1962a37e94
version: enable strict typing 2024-06-11 23:03:53 +01:00
BrewTestBot
daada85383
brew vendor-gems: commit updates. 2024-06-11 16:39:24 +00:00