6232 Commits

Author SHA1 Message Date
Ryan Rotter
4f6771ccab test brew desc -s works w/ API w/o --eval-all 2024-06-30 23:05:29 -04:00
apainintheneck
fb3b13e3c3 Add tests
Check for the following:
- Tap migration rename to core tap can be loaded by short name
- Tap migration rename to core tap can be loaded by long name
- Tap migration renam that clashes with existing core tap short name
  is ignored in favor of loading the cask/formula from the core tap
2024-06-30 13:55:41 -07:00
Rylan Polster
e28d455154
autoremove: skip formulae where installed_on_request is nil 2024-06-28 21:57:47 -04:00
Eric Knibbe
f627c6331d
cask/audit: support on_os blocks in audit_min_os 2024-06-21 19:25:51 -04:00
Kevin
c3c1528611
Revert "Use cp -c when copying files" 2024-06-17 21:17:10 -07:00
Sean Molenaar
bbd73a7243 feat: add shared checks for casks and formulae 2024-06-16 17:24:31 +02:00
John Bampton
f6ee19239d Fix spelling; Github -> GitHub 2024-06-15 19:08:53 +10: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
Bo Anderson
fa91edadfd
Portable Ruby 3.3.3 2024-06-14 03:32:38 +01:00
Mike McQuaid
4f35bc1e12
Merge pull request #17449 from Homebrew/brew-mark 2024-06-13 09:11:00 +01:00
Mike McQuaid
1e0add6d66
Merge pull request #17373 from tesaguri/cp-reflink 2024-06-13 08:57:20 +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
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
Daiki Mizukami
028cfe1ea6
Utils::Cp: Rename to Utils::Copy
As per review feedback:

https://github.com/Homebrew/brew/pull/17373#discussion_r1633217748
2024-06-11 20:31:34 +09:00
Daiki Mizukami
4edbbfd794
Utils::Cp: Add tests 2024-06-11 20:27:37 +09:00
Bo Anderson
7da94a8f01
Preliminary macOS 15 (Sequoia) support 2024-06-11 02:59:31 +01:00
Mike McQuaid
c13700af00
Use repository consistently instead of repo
The documentation linting job doesn't like `repo` so let's fix this
globally rather than naming it differently in documentation and code.
2024-06-10 09:31:53 +01:00
Kevin
f8b1d1f56c
Merge pull request #17385 from pe/migrations-broken
Fix migrations of formulae and casks to non homebrew taps
2024-06-08 19:34:14 -07:00
Philippe Eberli
20fb068085 Fix migrations of formulae and casks to non homebrew taps 2024-06-08 16:29:23 +02:00
William Woodruff
e2827f1d8c
Merge pull request #17438 from Homebrew/ww/fix-all-tag
attestation: handle `:all` bottles
2024-06-06 11:55:40 -04:00
William Woodruff
b92de887ee
attestation_spec: add :all tag test
Signed-off-by: William Woodruff <william@yossarian.net>
2024-06-06 11:35:43 -04:00
William Woodruff
83caa42876
attestation_spec: style fix
Signed-off-by: William Woodruff <william@yossarian.net>
2024-06-06 11:30:11 -04:00
William Woodruff
8d0e6eafc3
attestation: handle :all bottles
Signed-off-by: William Woodruff <william@yossarian.net>
2024-06-06 11:23:03 -04:00
Eric Knibbe
2d00e50071
cask: skip variations for inapplicable versions 2024-06-03 12:33:00 -04: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
Carlo Cabrera
ff83a4fd7f
Merge pull request #17280 from Homebrew/timeout-values 2024-05-27 21:38:07 +08:00
Daiki Mizukami
b8af1c546e
Utils::Cp: Fix tests 2024-05-27 17:48:32 +09:00
Aaron Ruan
10987270fa
remove unnecessary cask osdn-incorrect-url-format 2024-05-27 12:33:23 +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
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
Mike McQuaid
6e9288470e
brew style --fix 2024-05-23 17:15:43 +01:00
William Woodruff
3319e9956d
attestation: drop workflow check on core attestation
Signed-off-by: William Woodruff <william@yossarian.net>
2024-05-18 10:04:53 -04:00
Bo Anderson
7452350919
test/cask/artifact/shared_examples/uninstall_zap: fix for Ruby 3.2+ 2024-05-17 01:31:47 +01:00
Patrick Linnane
773dbfa92a
docs: update for Homebrew/cask-fonts deprecation
Signed-off-by: Patrick Linnane <patrick@linnane.io>
2024-05-16 09:21:14 -07:00
William Woodruff
f78a8882d9
attestation: redact secret in environment
Signed-off-by: William Woodruff <william@yossarian.net>
2024-05-14 14:32:23 -04:00
Caleb Xu
00ba3930d6
messages: enable strict typing 2024-05-13 08:48:41 -04:00
Carlo Cabrera
a9c8556b9d
github_runner_matrix: define timeout values in constants
This allows us to keep all information about timeout values here in
`brew` instead of both here and in Homebrew/core.

Will be needed after Homebrew/homebrew-core#171457.
2024-05-12 04:48:00 +08:00
Carlo Cabrera
71c4bfae79
Merge pull request #17222 from Homebrew/intel-runner-tag
github_runner_matrix: add `-x86_64` to Intel runner names
2024-05-12 02:19:47 +08:00
Carlo Cabrera
90c198fd5c
determine-test-runners: fix failing test 2024-05-12 02:09:37 +08:00
Mike McQuaid
16901a674f
extend/kernel: make opoo/odie/etc. print GitHub Actions notes.
We already do this for deprecations but these may make warnings
and errors from Homebrew easier to spot in GitHub Actions logs.

While we're here, cleanup other cases that should have used
`GitHub::Actions::Annotation` but didn't and provide some helpers and
tweaks there necessary for our use case here.
2024-05-09 14:43:53 +01:00
Mike McQuaid
442aa91704
SBOM improvements
- write a schema when installing formulae (if not already present)
- cache the schema on disk rather than downloading it every time
- make more methods/attributes `private`
- allow validation to be optional, only enable for Homebrew developers
  at installation time
- use the tab for more, correct information
- ensure that dependencies/bottles are written correctly
- use new SBOM 3 schema URL
- improve test coverage
2024-05-09 13:10:37 +01:00
Kevin
c44e053847
Merge pull request #17242 from Homebrew/fix-cask-source-file-path-loading-issues
Fix cask source file path loading issues
2024-05-08 18:28:04 -07:00
Mike McQuaid
d3746d55f2
Merge pull request #17248 from Homebrew/remove_plist_startup
caveats_spec: remove outdated plist_startup reference.
2024-05-07 19:54:25 +01:00
Sean Molenaar
a43b7464c2 feat: add generated SPDX file on bottling 2024-05-07 20:33:22 +02:00
Mike McQuaid
46c6571bd6
caveats_spec: remove outdated plist_startup reference.
This was removed a long time ago.
2024-05-07 19:31:28 +01:00
Mike McQuaid
222fe8ef0b
Homebrew 4.3.0 deprecation/disable/removals.
The usual pass of deprecating/disabling/removing code for the next
minor Homebrew release.
2024-05-07 12:18:04 +01:00
Mike McQuaid
d77dbe8b89
Merge pull request #17241 from Homebrew/cask-audit-sourceforge
cask/audit: tune sourceforge.net URL regex
2024-05-07 09:06:50 +01:00