26703 Commits

Author SHA1 Message Date
Bo Anderson
200cdc69df
utils/gems: set SDKROOT for macOS system Ruby 2022-10-19 18:39:52 +01:00
Mike McQuaid
c6b7836368
Merge pull request #14020 from samford/allow-livecheck-block-in-on_system-blocks
Allow livecheck method in on_system blocks
2022-10-19 11:20:09 +01:00
Francois-Xavier Coudert
e16afb305e Mark macOS Ventura as supported 2022-10-19 11:21:52 +02:00
Sam Ford
40199404cf
Allow livecheck method in on_system blocks
It's sometimes necessary to have a `livecheck` block in an `on_macos`
or `on_linux` block. For example, a formula may be disabled on macOS
but not on Linux. In that scenario, we only want a `livecheck` block
to apply to Linux, so livecheck will automatically skip the formula
as disabled on macOS.

While this setup works on a technical level, `brew style` will give
an `on_linux cannot include livecheck` offense. This commit addresses
the issue by adding `livecheck` to `on_system_allowed_methods` in the
`ComponentsOrder` Rubocop.

This also updates `on_system_allowed_methods` to use the order in
`FORMULA_COMPONENT_PRECEDENCE_LIST`, which may make it a bit easier
for formula maintainers to read at a glance.
2022-10-18 16:02:29 -04:00
Sam Ford
942f419a48
ResourceAuditor: Fix #audit_head_branch error
The existing logic in `#audit_head_branch` for identifying the `HEAD`
branch in a Git repository will give an ```undefined method `[]' for
nil:NilClass``` error when a repository doesn't provide this
reference. Expected output is as follows:

```
ref: refs/heads/master  HEAD
1a8f9ac700873d1a08de31a17a2fd654245d5085  HEAD
```

However, I encountered this error for a repository with the following
output (i.e., where no symref is provided for HEAD):

```
f86be659718c0cd0a67f88b42f07044c23d0d028  HEAD
```

This commit resolves the error by modifying the related logic to
account for a `nil` value.
2022-10-17 13:28:20 -04:00
Bo Anderson
1a8f9ac700
Merge pull request #14008 from Bo98/bundler-arm-linux
Restore ARM Linux support when installing gems
2022-10-17 14:38:39 +01:00
Bo Anderson
c150657005
Restore ARM Linux support when installing gems 2022-10-17 13:59:40 +01:00
Bo Anderson
44f93069bb
os/mac/pkgconfig/13: update for beta 9 SDK 2022-10-17 01:14:01 +01:00
nthumann
f54de5a848
Fix curl_output for curl download strategy 2022-10-16 22:30:16 +02:00
BrewTestBot
ea95518d59
sorbet: Update RBI files.
Autogenerated by the [sorbet](https://github.com/Homebrew/brew/blob/master/.github/workflows/sorbet.yml) workflow.
2022-10-15 00:35:47 +00:00
Mike McQuaid
34979a33d3
Merge pull request #13997 from hyuraku/add-error-log-for-download-formula.json
add error log of download `formula.json`
2022-10-14 17:35:45 +01:00
Mike McQuaid
e554f51454
cmd/update: tweak error message.
Co-authored-by: Bo Anderson <mail@boanderson.me>
2022-10-14 17:10:50 +01:00
hyuraku
4bc5f48654 compare bytesize instead of shasum256 2022-10-15 00:22:10 +09:00
EricFromCanada
504bdd2816
bump-cask-pr: handle additional use cases 2022-10-14 11:19:49 -04:00
BrewTestBot
b3605020e3
Update RBI files for elftools.
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gemss.yml) workflow.
2022-10-14 09:05:18 +00:00
BrewTestBot
f5663e6e0c
brew vendor-gems: commit updates. 2022-10-14 09:00:12 +00:00
dependabot[bot]
dfd9653331
build(deps): bump elftools from 1.1.3 to 1.2.0 in /Library/Homebrew
Bumps [elftools](https://github.com/david942j/rbelftools) from 1.1.3 to 1.2.0.
- [Release notes](https://github.com/david942j/rbelftools/releases)
- [Commits](https://github.com/david942j/rbelftools/compare/v1.1.3...v1.2.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-14 08:56:23 +00:00
Bo Anderson
0be900af69
Merge pull request #13984 from Bo98/bundler2
Migrate to Bundler 2
2022-10-14 02:51:47 +01:00
Bo Anderson
a0e784f0ea
Update to Bundler 2 2022-10-14 01:30:38 +01:00
Bo Anderson
a776d5f02b
Workaround macOS system Ruby issue picking incorrect native gem archs 2022-10-14 01:30:38 +01:00
Bo Anderson
6858e215dd
dev-cmd/vendor-gems: add --no-commit switch 2022-10-14 01:30:37 +01:00
Bo Anderson
5e31f41a52
utils/gems: prevent lockfile modification during installation 2022-10-14 01:30:37 +01:00
Bo Anderson
c87c97e4d7
utils/gems: install Bundler into vendor directory 2022-10-14 01:30:34 +01:00
Caleb Xu
5a4840dbc8
extend/os/mac: ensure writable file for codesign 2022-10-13 17:56:53 -04:00
hyuraku
dc37364248 use ruby script instead of shasum command 2022-10-13 23:46:41 +09:00
hyuraku
f4156378d8 compare formula.json shasum to check brew updated 2022-10-13 23:16:28 +09:00
hyuraku
8843364123 add error log of download formula.json 2022-10-12 22:35:08 +09:00
Mike McQuaid
19a1d06ff0
Merge pull request #13995 from Homebrew/sorbet-files-update
sorbet: Update RBI files.
2022-10-12 12:04:58 +01:00
Issy Long
8684f953f6
Merge pull request #13989 from issyl0/sorbet-rbi-is-in-maintenance 2022-10-12 08:48:45 +01:00
BrewTestBot
c54a59c360
sorbet: Update RBI files.
Autogenerated by the [sorbet](https://github.com/Homebrew/brew/blob/master/.github/workflows/sorbet.yml) workflow.
2022-10-11 19:21:37 +00:00
Bo Anderson
bde685aae2
Merge pull request #13982 from Bo98/ruby3-part1
Preliminary compatibility fixes for Ruby 3
2022-10-11 19:42:57 +01:00
Issy Long
250f1882c8
dev-cmd/typecheck: Reinstate srb rbi hidden-definitions
- Turns out we do need this. I lulled us into a false sense of security
  by not deleting `sorbet/rbi/hidden-defintions/hidden.rbi` previously.
- If we do delete that file then Sorbet reveals >200 typechecking
  issues.
- The docs on moving from `srb rbi` to `tapioca` say that we don't need
  `hidden-definitions` anymore, but clearly we do. The blog post goes
  into a lot of detail on why `rbi hidden-defintions` exists and the
  fact that there's not an analogous command in Tapioca:
  https://sorbet.org/blog/2022/07/27/srb-tapioca#whats-happening-with-srb-rbi-hidden-definitions
- Eventually we should try out `tapioca dsl`, since that's said to be a
  "partial replacement" for `hidden-definitions`, and removing our
  reliance on deprecated commands can only be a good thing?
2022-10-11 09:58:44 +01:00
Rylan Polster
174087958b
Simulate all OS/arch combinations in brew readall 2022-10-10 23:56:37 -04:00
Bo Anderson
9b99594753
Preliminary compatibility fixes for Ruby 3 2022-10-11 02:53:27 +01:00
Issy Long
b7d997e80d
sorbet: Bump some files from typed: false to typed: true
- This was done with `brew typecheck --update --suggest-typed` which
  (as of the previous commit) uses Spoom, yet another gem. I thought I'd
  see how well it works. There are no Sorbet errors after these changes!
2022-10-11 01:09:03 +01:00
Issy Long
295d60b3a2
Gemfile*,dev-cmd/typecheck: Use Spoom for --suggest-typed
- Spoom is the gem that's recommended for automatically changing `typed`
  sigils in files now. It was recommended in the "migrate to Tapioca"
  guide at
  https://github.com/Shopify/tapioca/wiki/Migrating-to-Tapioca#things-that-do-not-need-to-happen.
2022-10-11 01:09:02 +01:00
Issy Long
84e83dd1ad
sorbet/rbi/todo: Update the comment now it's generated with Tapioca
- Again, this was automatic with `brew typecheck --update`.
2022-10-11 00:56:53 +01:00
Issy Long
bca4fa3472
dev-cmd/typecheck: Use Tapioca more as srb rbi is in maintenance
- According to https://sorbet.org/blog/2022/07/27/srb-tapioca, Tapioca
  is the recommended way to generate RBIs for Sorbet these days and `srb
  rbi` is in maintenance mode.
- There's a handy migration document -
  https://github.com/Shopify/tapioca/wiki/Migrating-to-Tapioca - and
  we're some of the way there already given we currently use Tapioca in
  some places.
2022-10-11 00:56:48 +01:00
Carlo Cabrera
f30f68be7d
Merge pull request #13978 from carlocab/rpath-prefix
formula: ensure `rpath` is passed a valid `target`
2022-10-11 02:06:20 +08:00
Adrian Ho
5155c9073b update*: enforce sane symlinks setting
Otherwise, a global `core.symlinks = false` setting, likely in a WSL context, breaks Aliases and any other places that use symlinks.

Also enforce consistency in `git config` settings across instances.

Ref: https://github.com/Homebrew/homebrew-core/issues/112539
2022-10-08 22:03:37 +08:00
Carlo Cabrera
933129dcdb
Make error message clearer
Co-authored-by: Bo Anderson <mail@boanderson.me>
2022-10-08 11:43:43 +08:00
Bo Anderson
60b0c337df
formula: fix inreplace errors not being printed 2022-10-07 21:00:46 +01:00
Bo Anderson
3a57d0904b
Merge pull request #13980 from Bo98/ventura-xcode-14.1
os/mac/xcode: require Xcode 14.1 on Ventura
2022-10-07 20:03:39 +01:00
Bo Anderson
a7c4de27e0
Merge pull request #13977 from Bo98/sorbet-update
Update Sorbet to 0.5.10461
2022-10-07 19:51:02 +01:00
Bo Anderson
cd6b81b28d
os/mac/xcode: require Xcode 14.1 on Ventura 2022-10-07 19:28:35 +01:00
Dawid Dziurla
38026e6d8d
test: update for default.target 2022-10-07 20:22:13 +02:00
Sean Molenaar
d70d837687
service: use default.target on Linux 2022-10-07 20:22:12 +02:00
Bo Anderson
89dd402e23
Update RBI files 2022-10-07 19:21:12 +01:00
Bo Anderson
e3ee061db0
version/null: fix major_minor(_patch) type signature 2022-10-07 19:21:11 +01:00
Bo Anderson
7744ccd57c
brew vendor-gems: commit updates. 2022-10-07 19:21:11 +01:00