25306 Commits

Author SHA1 Message Date
Carlo Cabrera
c586aeffc8
cmd/info: use Formula.all
Fixes #13241.
2022-05-04 16:41:25 +08:00
BrewTestBot
449fc16bab
brew vendor-gems: commit updates. 2022-05-03 18:05:11 +00:00
dependabot[bot]
b8777d095b
build(deps-dev): bump sorbet in /Library/Homebrew
Bumps [sorbet](https://github.com/sorbet/sorbet) from 0.5.9959 to 0.5.9962.
- [Release notes](https://github.com/sorbet/sorbet/releases)
- [Commits](https://github.com/sorbet/sorbet/commits)

---
updated-dependencies:
- dependency-name: sorbet
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-03 18:02:36 +00:00
Mike McQuaid
5760e6eb9d
Merge pull request #13229 from Homebrew/dependabot/bundler/Library/Homebrew/sorbet-0.5.9959
build(deps-dev): bump sorbet from 0.5.9889 to 0.5.9959 in /Library/Homebrew
2022-05-03 09:48:22 +01:00
apainintheneck
0dd3764041 Allow casks with outdated caskfiles to be reinstalled
The problem occurred when calling `brew reinstall` on a cask
with an out of date caskfile.

To solve the problem Cask::Installer#uninstall_existing_cask has been changed to
catch a possible CaskInvalidError when trying to load outdated
caskfiles using Cask::CaskLoader#load.
2022-05-02 23:39:18 -07:00
Bo Anderson
bb38f4bd5f
Renegerate all RBI files for new Sorbet 2022-05-02 21:03:05 +01:00
Bo Anderson
2ca517c79a
dev-cmd/typecheck: add --all switch 2022-05-02 21:03:02 +01:00
Bo Anderson
48bf0cc7ad
Update RBI files for parlour. 2022-05-02 20:48:42 +01:00
BrewTestBot
5de4756e3a
brew vendor-gems: commit updates. 2022-05-02 20:44:07 +01:00
dependabot[bot]
457805959c
build(deps-dev): bump parlour from 6.0.1 to 7.0.0 in /Library/Homebrew
Bumps [parlour](https://github.com/AaronC81/parlour) from 6.0.1 to 7.0.0.
- [Release notes](https://github.com/AaronC81/parlour/releases)
- [Changelog](https://github.com/AaronC81/parlour/blob/master/CHANGELOG.md)
- [Commits](https://github.com/AaronC81/parlour/compare/6.0.1...7.0.0)

---
updated-dependencies:
- dependency-name: parlour
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-02 20:43:14 +01:00
BrewTestBot
3877df2eac
brew vendor-gems: commit updates. 2022-05-02 19:28:34 +00:00
dependabot[bot]
a982a15bfb
build(deps-dev): bump sorbet in /Library/Homebrew
Bumps [sorbet](https://github.com/sorbet/sorbet) from 0.5.9889 to 0.5.9959.
- [Release notes](https://github.com/sorbet/sorbet/releases)
- [Commits](https://github.com/sorbet/sorbet/commits)

---
updated-dependencies:
- dependency-name: sorbet
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-02 19:22:11 +00:00
BrewTestBot
12dfa1fbd2
Update RBI files for tapioca. 2022-05-02 18:51:49 +00:00
BrewTestBot
cb71c1d7f7
brew vendor-gems: commit updates. 2022-05-02 18:46:31 +00:00
dependabot[bot]
d57887b21d
build(deps-dev): bump tapioca from 0.7.1 to 0.7.2 in /Library/Homebrew
Bumps [tapioca](https://github.com/Shopify/tapioca) from 0.7.1 to 0.7.2.
- [Release notes](https://github.com/Shopify/tapioca/releases)
- [Commits](https://github.com/Shopify/tapioca/compare/v0.7.1...v0.7.2)

---
updated-dependencies:
- dependency-name: tapioca
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-02 19:43:25 +01:00
Francois-Xavier Coudert
a30e27b403 compilers: add gcc-12 2022-04-30 22:05:35 +02:00
Mike McQuaid
ea722400cd
Merge pull request #13216 from Homebrew/dependabot/bundler/Library/Homebrew/rubocop-sorbet-0.6.8
build(deps): bump rubocop-sorbet from 0.6.7 to 0.6.8 in /Library/Homebrew
2022-04-29 14:34:39 +01:00
Mike McQuaid
2c0bd31d68
Merge pull request #13215 from timvisher/fix/keep-info_name_dir-files-on-clean
Keep `info/#{f.name}/dir` files in cleaner
2022-04-29 14:23:04 +01:00
danielnachun
3aaef294f6
formula_installer: add check for HOMEBREW_RELOCATE_BUILD_PREFIX 2022-04-28 12:49:11 -07:00
BrewTestBot
00909fc282
Update RBI files for rubocop-sorbet. 2022-04-28 18:15:35 +00:00
BrewTestBot
5ccd9c5a1d
brew vendor-gems: commit updates. 2022-04-28 18:09:59 +00:00
dependabot[bot]
688f7c61b3
build(deps): bump rubocop-sorbet in /Library/Homebrew
Bumps [rubocop-sorbet](https://github.com/shopify/rubocop-sorbet) from 0.6.7 to 0.6.8.
- [Release notes](https://github.com/shopify/rubocop-sorbet/releases)
- [Commits](https://github.com/shopify/rubocop-sorbet/compare/v0.6.7...v0.6.8)

---
updated-dependencies:
- dependency-name: rubocop-sorbet
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-28 18:03:58 +00:00
Tim Visher
0d81864597 Use file.dirname in most cleaner tests 2022-04-28 10:40:16 -04:00
Tim Visher
8852208758 feedback 2022-04-28 10:40:16 -04:00
Tim Visher
59649a288c Use more next 2022-04-28 10:40:16 -04:00
Tim Visher
48db5eff25 lint 2022-04-28 10:40:16 -04:00
Tim Visher
fbb3ccbfd6 Keep info/#{f.name}/dir files in cleaner
Still cleans `info/dir` and `info/<arch>/dir` files.

Fixes https://github.com/Homebrew/homebrew-core/issues/100190
2022-04-28 10:40:16 -04:00
Mike McQuaid
803444b9a6
Merge pull request #13212 from danielbayley/rubocop-url-trailing-slash
Fix Rubocop trailing `/` bug
2022-04-28 09:10:10 +01:00
BrewTestBot
0cc880c038
Update RBI files for activesupport. 2022-04-27 18:15:40 +00:00
BrewTestBot
8ea008eb11
brew vendor-gems: commit updates. 2022-04-27 18:10:10 +00:00
dependabot[bot]
29d3365974
build(deps): bump activesupport in /Library/Homebrew
Bumps [activesupport](https://github.com/rails/rails) from 6.1.5 to 6.1.5.1.
- [Release notes](https://github.com/rails/rails/releases)
- [Changelog](https://github.com/rails/rails/blob/v7.0.2.4/activesupport/CHANGELOG.md)
- [Commits](https://github.com/rails/rails/compare/v6.1.5...v6.1.5.1)

---
updated-dependencies:
- dependency-name: activesupport
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-27 18:04:02 +00:00
danielbayley
7d145f5798 Fix Rubocop trailing / bug 2022-04-27 18:42:11 +01:00
Bo Anderson
e6cb1f18e7
Merge pull request #13151 from Bo98/libcrypt-1-deprecation
linkage_checker: deprecate linkage to libcrypt.so.1
2022-04-27 16:00:22 +01:00
Bo Anderson
1c73e25627
uses_from_macos: allow libxcrypt 2022-04-27 15:08:43 +01:00
Mike McQuaid
e381843215
Merge pull request #13201 from mhmdanas/remove-space-before-colon-in-livecheck-output
Remove space before colon in `livecheck` output
2022-04-27 14:52:30 +01:00
Sean Molenaar
506337e76d
Merge pull request #13196 from SMillerDev/feature/pr-pull/casks_checksum 2022-04-27 12:30:32 +02:00
Bo Anderson
d0a0bbef8d
Merge pull request #13205 from Bo98/macos12.3
os/mac/pkgconfig/12: update for macOS 12.3
2022-04-27 01:24:17 +01:00
Bo Anderson
b3da8dbd24
test/os/mac/pkgconfig_spec: fix libffi detection on 12.3+ SDK 2022-04-27 00:59:15 +01:00
Bo Anderson
7d10bfc6b3
os/mac/pkgconfig/12: update for macOS 12.3 2022-04-27 00:50:13 +01:00
Eric Knibbe
af5ebe5976
Merge pull request #13194 from EricFromCanada/search-adjustments
search: drop Homebrew cask tap names from list
2022-04-26 19:01:31 -04:00
Nanda H Krishna
27466b01da
searchable: flatten array before matching
Fix #13203 which occurs when searching cask descriptions.
2022-04-26 18:18:29 -04:00
mhmdanas
37c46e1acd Remove space before colon in livecheck output 2022-04-27 01:09:16 +03:00
Sam Ford
b7a4360433
#parse_curl_output: increase default max_iterations
The `max_iterations` value in `#parse_curl_output` is only intended
to prevent its `while` loop from potentially turning into an endless
loop. This should only come into play in exceptional circumstances
but the current default value (5) is low enough that we're seeing it
under normal circumstances.

`#parse_curl_output` isn't intended to restrict the number of
redirections (this should be done using the `--max-redirs` option in
`curl) but it's effectively doing this in rare cases due to the low
`max_iterations` default. This is a problem because `curl` can
successfully return a response only to have `#parse_curl_output`
error in relation to `max_iterations`.

Originally the code in `#parse_curl_output` was used in the context
of livecheck, where it's not a huge issue if a check fails. However,
now the `#parse_curl_output` method is used in important parts of
brew like `#curl_download`. We've received a report of a download
failing with the "Too many redirects (max = 5)` error, effectively
preventing the user from installing a formula [from a third-party
tap].

Until we can come up with a more adaptive way of bounding this
`while` loop, I think we should simply raise the default to something
that's less likely to be encountered under normal circumstances
(e.g., 25).
2022-04-26 15:49:02 -04:00
Maxim Belkin
13735bc780
Apply Mike's suggestions from code review
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
2022-04-26 08:35:28 -07:00
Maxim Belkin
27a2dba340
update/update-reset: warn when no origin remote
Current situation with update.sh & update-reset.sh:

Upon creating a new tap and before adding remote 'origin' to it,
running `brew update` produces multiple cryptic error messages.
This change converts these cryptic Git messages into clear warnings
about absent remote 'origin'.

How to test:
1. Create a new tap using `brew tap-new`
2. Run `brew update`
2022-04-26 08:35:27 -07:00
Alexander Bayandin
c726385035
utils/curl: fix headers check for protected urls 2022-04-26 13:27:42 +01:00
Mike McQuaid
5280a38b1b
Merge pull request #13190 from Homebrew/dependabot/bundler/Library/Homebrew/regexp_parser-2.3.1
build(deps): bump regexp_parser from 2.3.0 to 2.3.1 in /Library/Homebrew
2022-04-26 10:33:23 +01:00
Sean Molenaar
9a25a1d5e1
pr-pull: add checksum update clause 2022-04-26 08:57:29 +02:00
Sam Ford
d6202384d7
Curl: Remove guard from certain parsing logic
The `#curl_http_content_headers_and_checksum` method previously
parsed responses from `curl` output even if `status.success?` wasn't
`true`. A recent commit of mine moved the parsing logic behind this
guard but it's now leading to a "...is not reachable" error when a URL
involves a large download that takes longer than 25 seconds to finish
and hits the timeout.

This commit resolves the issue for the time being by moving related
logic back to its previous location, where it isn't guarded by
`status.success?`.
2022-04-26 01:22:20 -04:00
EricFromCanada
a4590f394e
search: drop Homebrew cask tap names from list
Results in searching a list of tokens from official Homebrew cask taps and fully-qualified tokens from other taps, matching the list when searching formulae.
2022-04-25 22:22:03 -04:00