32207 Commits

Author SHA1 Message Date
Issy Long
1f9c764a69
dev-cmd/contributions: Pass from correctly through count_reviews too 2024-05-28 14:10:25 +01:00
Issy Long
808cfda92d
dev-cmd/contributions: Fix the date range behaviour
- This was broken (I did have a commit SHA for the breakage but I can't find it now) since `from` and `args.from` are different variables (one can be nil, the other has a default value).
- So it was reporting very high counts because, despite the message, the `from` restriction was not being passed to `count_repo_commits`.
2024-05-28 13:58:41 +01:00
Daiki Mizukami
b4dcb94ad6
Utils::Cp: Drop special case for coreutils cp
As per review feedback:

https://github.com/Homebrew/brew/pull/17373#issuecomment-2132673915
2024-05-28 12:34:30 +09:00
Sam Ford
e2220ecc42
cask/audit: Rework tmpdir removal
I previously introduced a finalizer method in `Cask::Audit` to remove
the created `@tmpdir` once it's no longer needed but the existing
approach produces a `finalizer references object to be finalized`
warning when `brew audit` is run. I didn't see this warning when I
was originally testing it but now it reliably appears.

This reworks the finalizer to define it within the
`#extract_artifacts` method and use `@tmpdir` as the target object.
2024-05-27 13:09:46 -04:00
Mike McQuaid
7d0ac4dd4b
style: run actionlint.
It feels nice to also be running this as part of `brew style` checks
and, indirectly, `brew test-bot` tap syntax checks.

Co-authored-by: Carlo Cabrera <30379873+carlocab@users.noreply.github.com>
2024-05-27 15:30:04 +01:00
Carlo Cabrera
ff83a4fd7f
Merge pull request #17280 from Homebrew/timeout-values 2024-05-27 21:38:07 +08:00
Daiki Mizukami
942906b74a
Utils::Cp: Use cp from macOS 2024-05-27 18:10:46 +09:00
Daiki Mizukami
b8af1c546e
Utils::Cp: Fix tests 2024-05-27 17:48:32 +09:00
Mike McQuaid
91affd113e
Merge pull request #17366 from Aaron-212/disable-osdn-url
Audit: disable OSDN urls
2024-05-27 08:19:57 +01:00
Mike McQuaid
ed73551cc7
cask/audit: remove debug message. 2024-05-27 08:10:20 +01:00
Aaron Ruan
10987270fa
remove unnecessary cask osdn-incorrect-url-format 2024-05-27 12:33:23 +08:00
Aaron Ruan
ae851a7aa4
seperate audit for osdn url 2024-05-27 12:22:48 +08:00
Daiki Mizukami
deaac7ce47
Use Utils::Cp to copy files
This replaces `FileUtils.cp` and `system_command! "cp"` with the new
`Utils::Cp` utility where it is expected that the performance
improvement outweighs the cost of the system command invocation.
2024-05-27 12:11:41 +09:00
Daiki Mizukami
b905959a99
Add Utils::Cp for interacting with cp command
This module determines the `cp` command to use based on availability of
the `coreutils` formula and optimizes the command invocation to prefer a
lightweight copy-on-write clone, which is significantly faster than a
full file copy and helps to reduce the risk of exhausting the storage
during the operation.
2024-05-27 12:11:38 +09:00
Aaron Ruan
7b21cc1856
fix typecheck 2024-05-27 09:32:54 +08:00
BrewTestBot
3cb7cecc39
sorbet: Update RBI files.
Autogenerated by the [sorbet](https://github.com/Homebrew/brew/blob/master/.github/workflows/sorbet.yml) workflow.
2024-05-27 00:21:11 +00:00
Patrick Linnane
7aa10a13a4
brew style --fix
Signed-off-by: Patrick Linnane <patrick@linnane.io>
2024-05-26 16:03:03 -07:00
Aaron Ruan
0778379501
change tests for auditing OSDN download urls 2024-05-27 00:34:08 +08:00
Aaron Ruan
73ead3e5f5
match with url host instead of string 2024-05-27 00:26:35 +08:00
Carlo Cabrera
a91c758086
Merge pull request #17370 from Homebrew/sbom_all_bottles_fix 2024-05-27 00:00:14 +08:00
Mike McQuaid
6bd0823f7e
sbom: fix dependency bottle information in SBOM.
This breaks the possibility for some `:all` bottle creation if they
reference a non-`:all` bottle as a dependency.

Instead, omit this information in the bottle and generate it only at
install time.
2024-05-26 16:48:48 +01:00
Mike McQuaid
ba6ec7066b
Revert "Revert "Enable HOMEBREW_AUTOREMOVE by autoremove_default"" 2024-05-26 15:39:45 +01:00
Mike McQuaid
7be26329c5
Apply suggestions from code review 2024-05-26 15:28:53 +01:00
Sean Molenaar
fdb347c35f
Update Library/Homebrew/sbom.rb
Co-authored-by: Ruoyu Zhong <zhongruoyu@outlook.com>
2024-05-26 13:20:04 +02:00
Sean Molenaar
9d75d09a82
fix: allow not validating SBOM 2024-05-26 13:16:43 +02:00
Aaron Ruan
7da9ea07d0
fix style 2024-05-26 17:00:42 +08:00
Aaron Ruan
2fcbff8ee2
disable osdn.jp URL 2024-05-26 16:51:44 +08:00
BrewTestBot
40b7ed93ff
sorbet: Update RBI files.
Autogenerated by the [sorbet](https://github.com/Homebrew/brew/blob/master/.github/workflows/sorbet.yml) workflow.
2024-05-26 00:22:41 +00:00
Carlo Cabrera
ffd6c1f5c3
Revert "Enable HOMEBREW_AUTOREMOVE by autoremove_default"
`autoremove` is destructive, and it can be difficult for users to
recover from it occuring when they weren't expecting it.

Fixes #17363
Fixes Homebrew/discussions#5395

This reverts commit 3d114161b3c3f1a95b94e8530f5bc45bb44bbbd9.
This reverts commit efb14a0ec264c4ef408dbbd5330905dd230e979c.
2024-05-25 23:19:42 +08:00
Mike McQuaid
545f17e3b6
Merge pull request #17361 from Homebrew/dependabot/bundler/Library/Homebrew/warning-1.4.0
build(deps): bump warning from 1.3.0 to 1.4.0 in /Library/Homebrew
2024-05-24 19:26:08 +01:00
BrewTestBot
d60b14d1a3
Update RBI files for warning.
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gems.yml) workflow.
2024-05-24 18:15:19 +00:00
BrewTestBot
e2da608b26
brew vendor-gems: commit updates. 2024-05-24 18:15:07 +00:00
BrewTestBot
6af1b714fe
brew vendor-gems: commit updates. 2024-05-24 18:14:52 +00:00
dependabot[bot]
c14fe80881
build(deps): bump warning from 1.3.0 to 1.4.0 in /Library/Homebrew
Bumps [warning](https://github.com/jeremyevans/ruby-warning) from 1.3.0 to 1.4.0.
- [Changelog](https://github.com/jeremyevans/ruby-warning/blob/master/CHANGELOG)
- [Commits](https://github.com/jeremyevans/ruby-warning/compare/1.3.0...1.4.0)

---
updated-dependencies:
- dependency-name: warning
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-24 18:14:19 +00:00
dependabot[bot]
e872cf1260
build(deps): bump sorbet-static-and-runtime and sorbet-runtime
Bumps [sorbet-static-and-runtime](https://github.com/sorbet/sorbet) and [sorbet-runtime](https://github.com/sorbet/sorbet). These dependencies needed to be updated together.

Updates `sorbet-static-and-runtime` from 0.5.11388 to 0.5.11391
- [Release notes](https://github.com/sorbet/sorbet/releases)
- [Commits](https://github.com/sorbet/sorbet/commits)

Updates `sorbet-runtime` from 0.5.11388 to 0.5.11391
- [Release notes](https://github.com/sorbet/sorbet/releases)
- [Commits](https://github.com/sorbet/sorbet/commits)

---
updated-dependencies:
- dependency-name: sorbet-static-and-runtime
  dependency-type: direct:development
  update-type: version-update:semver-patch
- dependency-name: sorbet-runtime
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-24 18:13:58 +00:00
Sam Ford
5701f92321
Clean up cask audit tmpdir after use
`Cask::Audit#extract_artifacts` is used in the `#audit_signing` and
`#cask_plist_min_os` methods to create a directory in `/tmp` and
extract cask artifacts without duplicating the work if it's already
done. However, due to how this is set up, `tmpdir` isn't removed
afterward and the extracted artifacts will take up disk space until
the `tmp` directory is cleaned up. As a result, running
`brew audit --strict --online` locally can chew through disk space
and it may not be clear to the user where their free space has gone.

This adds a finalizer method to `Cask::Audit` to remove the created
`@tmpdir` (if any) once it's no longer needed. There may be a better
way of addressing the issue but this works for now without having to
restructure how these audits work.
2024-05-24 09:22:12 -04:00
Mike McQuaid
ea5023a4ad
Merge pull request #17356 from Homebrew/verify-fail-with-body
livecheck/strategy: verify `--fail-with-body` support
2024-05-24 08:29:34 +01:00
Eric Knibbe
07e69b0ff2
livecheck/strategy: verify fail-with-body support 2024-05-23 13:08:25 -04:00
Mike McQuaid
6e9288470e
brew style --fix 2024-05-23 17:15:43 +01:00
Mike McQuaid
d780bd7734
rubocop.yml: disable broken rule for now. 2024-05-23 17:15:43 +01:00
BrewTestBot
1bae66a377
Update RBI files for rubocop.
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gems.yml) workflow.
2024-05-23 17:15:43 +01:00
BrewTestBot
01def2cc7e
brew vendor-gems: commit updates. 2024-05-23 17:15:42 +01:00
dependabot[bot]
1a87b73b28
build(deps-dev): bump rubocop from 1.63.5 to 1.64.0 in /Library/Homebrew
Bumps [rubocop](https://github.com/rubocop/rubocop) from 1.63.5 to 1.64.0.
- [Release notes](https://github.com/rubocop/rubocop/releases)
- [Changelog](https://github.com/rubocop/rubocop/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rubocop/rubocop/compare/v1.63.5...v1.64.0)

---
updated-dependencies:
- dependency-name: rubocop
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-23 17:15:42 +01:00
BrewTestBot
09212d596e
brew vendor-gems: commit updates. 2024-05-23 15:18:16 +00:00
dependabot[bot]
567db16bd5
build(deps): bump sorbet-runtime and sorbet-static-and-runtime
Bumps [sorbet-runtime](https://github.com/sorbet/sorbet) and [sorbet-static-and-runtime](https://github.com/sorbet/sorbet). These dependencies needed to be updated together.

Updates `sorbet-runtime` from 0.5.11386 to 0.5.11388
- [Release notes](https://github.com/sorbet/sorbet/releases)
- [Commits](https://github.com/sorbet/sorbet/commits)

Updates `sorbet-static-and-runtime` from 0.5.11386 to 0.5.11388
- [Release notes](https://github.com/sorbet/sorbet/releases)
- [Commits](https://github.com/sorbet/sorbet/commits)

---
updated-dependencies:
- dependency-name: sorbet-runtime
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: sorbet-static-and-runtime
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-23 15:17:18 +00:00
Bo Anderson
d70e5d4071
.gitignore: add bigdecimal (native gem) 2024-05-23 14:30:09 +01:00
BrewTestBot
d3e8e0b47a
Update RBI files for json_schemer.
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gems.yml) workflow.
2024-05-23 13:23:23 +00:00
BrewTestBot
5302effcde
brew vendor-gems: commit updates. 2024-05-23 13:23:07 +00:00
dependabot[bot]
aef6e2f4a9
build(deps-dev): bump json_schemer from 2.1.1 to 2.2.1 in /Library/Homebrew
Dependabot couldn't find the original pull request head commit, 86a9fcf9f24753041c4218c85b6ca8b068473568.
2024-05-23 14:22:01 +01:00
Bo Anderson
b56fef7fd5
dev-cmd/vendor-gems: run bundle clean
Fixes install inconsistencies between standalone and all other bundle operations
2024-05-23 06:25:02 +01:00