32621 Commits

Author SHA1 Message Date
apainintheneck
e1dda872c3 use XDG_CACHE_HOME on Linux
This variable was getting filtered out before so it wasn't possible
for us to use it as the default for HOMEBREW_DEFAULT_CACHE
and HOMEBREW_DEFAULT_LOGS.
2023-10-28 19:10:20 -07:00
Bo Anderson
700c7dea3f
Merge pull request #16155 from mahrud/quickfix/allow-branch-urls
audit(github): also permit refs/heads in GitHub URLs
2023-10-28 23:29:14 +01:00
Sam Ford
86c702abcd
Sparkle: Surface more Item values
Historically, the `Sparkle` strategy's `Item` struct has only
included basic values from the appcast that are commonly useful.
Over time we've selectively added/surfaced more values as we've
encountered outliers that require use of different values in a
`strategy` block.

We now need to use `minimumSystemValue`, so this expands the `Item`
struct to include any appcast value that we could conceivably want
to use in the future. This will hopefully save us from having to make
more modifications to the struct (and related tests) before we can
use a previously-unused value in a `strategy` block.
2023-10-28 14:55:47 -04:00
Bo Anderson
97eda64790
Merge pull request #16150 from Bo98/rexml-gem
Pull in REXML gem as it doesn't ship with Ruby 3
2023-10-28 18:03:30 +01:00
Bo Anderson
7187b8b5d6
extend/kernel: fix odisabled kwargs handling 2023-10-28 17:48:31 +01:00
Mahrud Sayrafi
eebffa8be3
audit(github): also permit refs/heads in GitHub URLs 2023-10-28 00:53:49 -05:00
Bo Anderson
f38fc62f90
dev-cmd: fix GitHub.workflow_dispatch_event kwarg calls 2023-10-27 22:37:22 +01:00
Bo Anderson
e19127dc89
dev-cmd/bump-formula-pr: fix specs passing under Ruby 3 2023-10-27 20:34:42 +01:00
Bo Anderson
26ea6b7f9e
Pull in REXML gem as it doesn't ship with Ruby 3 2023-10-27 20:24:10 +01:00
Mike McQuaid
979eed70a7
bootsnap: disable with Ruby 3. 2023-10-27 16:13:17 +01:00
Bo Anderson
14c1dce38b
Allow HOMEBREW_RUBY3 in tests 2023-10-27 15:58:43 +01:00
Bo Anderson
4ec450823c
Portable Ruby 3.1.4 (opt-in beta) 2023-10-27 15:58:43 +01:00
Mike McQuaid
93ec808d98
Merge pull request #16149 from Bo98/skip-child-gem-install
standalone/init: skip initial gem install in child processes
2023-10-27 14:19:08 +01:00
Bo Anderson
c45572ecee
standalone/init: skip initial gem install in child processes 2023-10-27 14:02:33 +01:00
Mike McQuaid
e377968edb
Merge pull request #16147 from MikeMcQuaid/setup-ruby
cmd/setup-ruby.sh: add new command.
2023-10-27 13:00:27 +01:00
Mike McQuaid
a2cd92b115
cmd/setup-ruby.sh: add new command.
This command, a bit like `install-bundler-gems`, is intended to be run
to ensure that the next invocation of `brew` will not need to try and
install Ruby or Bundler gems.
2023-10-27 09:27:56 +01:00
Bo Anderson
ce63b7c7f0
Merge pull request #16144 from Bo98/pr-upload-gem-fix
dev-cmd/pr-upload: fix gems not being installed with --upload-only
2023-10-26 20:37:08 +01:00
Bo Anderson
1af398068c
dev-cmd/pr-upload: fix gems not being installed with --upload-only 2023-10-26 20:20:53 +01:00
BrewTestBot
8cdd3263f6
Update RBI files for rubocop-ast.
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gems.yml) workflow.
2023-10-26 18:26:20 +00:00
BrewTestBot
bde565ea7f
brew vendor-gems: commit updates. 2023-10-26 18:20:35 +00:00
dependabot[bot]
9e0f49afc3
build(deps-dev): bump rubocop-ast in /Library/Homebrew
Bumps [rubocop-ast](https://github.com/rubocop/rubocop-ast) from 1.29.0 to 1.30.0.
- [Release notes](https://github.com/rubocop/rubocop-ast/releases)
- [Changelog](https://github.com/rubocop/rubocop-ast/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rubocop/rubocop-ast/compare/v1.29.0...v1.30.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-26 18:17:05 +00:00
Edward
f21af1e3eb
fix: xattr check in download quarantine 2023-10-25 21:22:06 +08:00
Edward
25ab4a2733
Revert "fix: ignore quarantine for linux cask download"
This reverts commit d2c15d04a1603c0a20fcedd0070d7c144cba28d8.
2023-10-25 21:21:28 +08:00
Edward
d2c15d04a1
fix: ignore quarantine for linux cask download 2023-10-25 19:25:29 +08:00
Bo Anderson
141ac157fd
Merge pull request #16126 from chenrui333/github/use-new-archive-urls
audit(github): prefer `/archive/refs/tags` urls over `/archive`
2023-10-24 18:48:03 +01:00
apainintheneck
c033a4673c dev-cmd/bump-cask-pr: replace url before downloading files
Previously it was possible for both the version and url to be changed.
This would cause the old url to be used to download the cask and check
the checksum since the version and checksum were replaced in the cask
first and then the url would be replaced. This meant that the resulting
checksum was wrong if a url was provided and might be completely
invalid if it was interpolated.
2023-10-23 19:22:46 -07:00
Rui Chen
b954e20d12
audit(github): also need to consider commit artifact
Signed-off-by: Rui Chen <rui@chenrui.dev>
2023-10-23 14:58:03 -04:00
Bo Anderson
de83bc69e0
Implement equality functions for BottleSpecification 2023-10-23 16:17:31 +01:00
Rui Chen
a496f6708e
audit(github): prefer /archive/refs/tags urls over /archive
Signed-off-by: Rui Chen <rui@chenrui.dev>
2023-10-23 11:00:27 -04:00
apainintheneck
779d90082d cli/parser: rescue formula specification errors
This came up recently where an outdated formula definition
caused the program to crash with an ambiguous message when
a user wanted to upgrade a cask instead. Catching these errors
allows them to get handled later on improving error messages
and defaults. Now if the only formula with the given name is
invalid it will default to using the cask unless --formula is
specified.

- https://github.com/Homebrew/brew/issues/16123
2023-10-21 17:15:26 -07:00
Mike McQuaid
46a8310390
Merge pull request #16127 from chenrui333/update-ua
chore(global): update safari user-agent to latest
2023-10-21 09:54:17 +01:00
Mike McQuaid
4436a663f2
download_strategies/curl_spec: fix test. 2023-10-21 09:41:35 +01:00
Mike McQuaid
20b8a74906
global: use correct user-agent. 2023-10-21 09:37:57 +01:00
Eric Knibbe
4b33460938
dependency_collector: fix caching of deps requiring brewed curl 2023-10-20 23:11:16 -04:00
Rui Chen
4232cb6c90
curl_spec: update test
Signed-off-by: Rui Chen <rui@chenrui.dev>
2023-10-20 20:46:22 -04:00
Rui Chen
2c4b282bff
chore(global): update safari user-agent to latest
Signed-off-by: Rui Chen <rui@chenrui.dev>
2023-10-20 19:44:16 -04:00
BrewTestBot
13ca7b6dd4
Update RBI files for thor.
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gems.yml) workflow.
2023-10-19 18:35:16 +00:00
BrewTestBot
3bcc856581
brew vendor-gems: commit updates. 2023-10-19 18:30:29 +00:00
dependabot[bot]
815589f668
build(deps-dev): bump thor from 1.2.2 to 1.3.0 in /Library/Homebrew
Bumps [thor](https://github.com/rails/thor) from 1.2.2 to 1.3.0.
- [Release notes](https://github.com/rails/thor/releases)
- [Commits](https://github.com/rails/thor/compare/v1.2.2...v1.3.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-19 18:26:03 +00:00
Eric Knibbe
0f76ade06b
formula_installer: pre-install implicit dependencies 2023-10-18 10:29:41 -04:00
Mike McQuaid
ab16b59ee7
Merge pull request #16116 from iMichka/dep2
brew unbottled: skip deprecated
2023-10-18 09:08:27 +01:00
Mike McQuaid
f656f8db97
dev-cmd/unbottled: more idiomatic Ruby. 2023-10-18 08:52:25 +01:00
Mike McQuaid
e7be31dcbc
Merge pull request #16115 from apainintheneck/add-lost-option-to-unbottled
dev-cmd/unbottled: add --lost option
2023-10-18 08:49:56 +01:00
apainintheneck
e48c155f42 dev-cmd/unbottled: share common parts of bottle tag regex
This makes it easier to see that the two regexes are related
and could make it easier to change them in the future if
need be.
2023-10-17 22:41:50 -07:00
Michka Popoff
651cef6f6b
brew unbottled: skip deprecated formulae
We are not interested in bottling them
2023-10-17 23:12:22 +02:00
Eric Knibbe
4562ab4299
download_strategy: support Mercurial tags/branches 2023-10-17 00:24:40 -04:00
apainintheneck
83598bb950 cmd/unbottled: Address review feedback for --lost
- Add heading message to indicate bottle tag used
- Use --no-ext-diff with git to avoid potential problems
- Resolve formula renames to avoid false positives
- Increase parsing stringency
2023-10-16 20:51:38 -07:00
apainintheneck
20f00a6427 dev-cmd/unbottled: add --lost option
This option tries to find bottles where the bottle was removed
from the formula in the past week and not added back in.

It checks the output of `git log` to see if there are any
bottles that fit this criteria.
2023-10-15 16:05:17 -07:00
Bo Anderson
e80bb70bed
Add retries to some online audit checks 2023-10-14 17:43:18 +01:00
Bo Anderson
337a8fc6ea
cmd/fetch: support retrying manifest downloads 2023-10-13 21:14:07 +01:00