33960 Commits

Author SHA1 Message Date
Rylan Polster
0f79b24203
Add languages to cask API 2023-01-28 01:05:54 -06:00
Douglas Eichelberger
220becda96 remove undent 🐵-patch 2023-01-27 22:55:38 -08:00
Douglas Eichelberger
dc78e91edd missed a few 2023-01-27 22:54:14 -08:00
Douglas Eichelberger
1dbeee826d replace undent with squiggly heredoc 2023-01-27 22:52:44 -08:00
Issy Long
8881ea74b5
cli/parser: Don't treat args with --cask as formulae
- For the command `brew install --cask racket`, a user was reporting the
  behaviour where despite `--cask` in the command, they were getting
  output about the `racket` formula having been renamed:

```
$ brew install --cask racket
Warning: Use minimal-racket instead of deprecated racket
==> Downloading https://mirror.racket-lang.org/installers/8.7/racket-8.7-x86_64-macosx-cs.
==> Installing Cask racket
[...]
racket was successfully installed!
```

- The "instead of deprecated ..." messaging comes from the `TapLoader`
  class `formula_name_path` method, so _something_ must be assuming
  that everything is initially a formula before _later_ learning from
  further args parsing that there's a `--cask` qualifier to scope to
  only casks.

- There are always `@formula_options` and args parsing is recursive,
  going through each option, so we check that the original `argv` items
  include a `--cask` and skip calling the `formulae` method if that's
  the case.

- After this change, the "formula renames" words no longer show up.

```
$ brew install --cask racket
==> Downloading https://mirror.racket-lang.org/installers/8.7/racket-8.7-aarch64-macosx-cs.dmg
==> Installing Cask racket
[...]
racket was successfully installed!
```
2023-01-27 21:49:20 +00:00
BrewTestBot
ebe8a70954
Update RBI files for webrick.
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gems.yml) workflow.
2023-01-27 18:14:26 +00:00
BrewTestBot
f9facbf2b6
brew vendor-gems: commit updates. 2023-01-27 18:08:11 +00:00
dependabot[bot]
ab69719957
build(deps): bump webrick from 1.7.0 to 1.8.1 in /Library/Homebrew
Bumps [webrick](https://github.com/ruby/webrick) from 1.7.0 to 1.8.1.
- [Release notes](https://github.com/ruby/webrick/releases)
- [Commits](https://github.com/ruby/webrick/compare/v1.7.0...v1.8.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-27 18:04:08 +00:00
Mike McQuaid
10845a1122
Merge pull request #14444 from dduugg/resolve-rubocop-todo
Resolve rubocop todo
2023-01-27 10:17:50 +00:00
Douglas Eichelberger
97a7d26255 Clamp metrics 2023-01-26 22:08:40 -08:00
Douglas Eichelberger
a836793e62 Move Style/Documentation config 2023-01-26 22:04:39 -08:00
Douglas Eichelberger
863c1b505b Allow Homebrew nodoc 2023-01-26 22:02:35 -08:00
Douglas Eichelberger
9578fc6665 Remove completed todos 2023-01-26 21:53:50 -08:00
Douglas Eichelberger
dead4de3fc Resolve Lint/EmptyBlock todos 2023-01-26 21:18:24 -08:00
Bo Anderson
12f3fb8252
Merge pull request #14201 from Homebrew/setup-homebrew-test
Adapt to setup-homebrew changes
2023-01-27 02:26:05 +00:00
Bo Anderson
dc2f41cb8d
workflows: set working directory to repo location 2023-01-27 01:48:26 +00:00
Bo Anderson
2ec4c82fe2
Merge pull request #14443 from Homebrew/sorbet-files-update
sorbet: Update RBI files.
2023-01-27 01:35:44 +00:00
BrewTestBot
f44772b95a
sorbet: Update RBI files.
Autogenerated by the [sorbet](https://github.com/Homebrew/brew/blob/master/.github/workflows/sorbet.yml) workflow.
2023-01-27 00:30:13 +00:00
Bo Anderson
0464970894
Merge pull request from GHSA-h7hq-48hm-3mfj
analytics: fix URL typo
2023-01-26 23:57:01 +00:00
Francois-Xavier Coudert
2b07d0d5bb analytics: fix URL typo 2023-01-26 21:24:50 +01:00
Mike McQuaid
72f10e52c0
Merge pull request #14440 from dduugg/avoid-stub_const
Enable RSpec/LeakyConstantDeclaration
2023-01-26 19:46:11 +00:00
Mike McQuaid
a1ff3f299d
Merge pull request #14441 from Homebrew/dependabot/bundler/Library/Homebrew/bootsnap-1.16.0
build(deps): bump bootsnap from 1.15.0 to 1.16.0 in /Library/Homebrew
2023-01-26 19:45:43 +00:00
Douglas Eichelberger
37940a9419 Revert "brew typecheck --update"
This reverts commit cb67974b69eeab1fcc7779b46f22b311cc86cc2a.
2023-01-26 10:57:05 -08:00
BrewTestBot
0ed9d7eeab
Update RBI files for bootsnap.
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gems.yml) workflow.
2023-01-26 18:12:48 +00:00
BrewTestBot
8851283730
brew vendor-gems: commit updates. 2023-01-26 18:06:04 +00:00
dependabot[bot]
9f7e90c2b2
build(deps): bump bootsnap from 1.15.0 to 1.16.0 in /Library/Homebrew
Bumps [bootsnap](https://github.com/Shopify/bootsnap) from 1.15.0 to 1.16.0.
- [Release notes](https://github.com/Shopify/bootsnap/releases)
- [Changelog](https://github.com/Shopify/bootsnap/blob/main/CHANGELOG.md)
- [Commits](https://github.com/Shopify/bootsnap/compare/v1.15.0...v1.16.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-26 18:02:07 +00:00
Douglas Eichelberger
cb67974b69 brew typecheck --update 2023-01-26 09:47:47 -08:00
Douglas Eichelberger
cd4ef92115 Use anonymous class constants instead 2023-01-26 09:42:57 -08:00
Mike McQuaid
fd18c7b0ac
Tweak cask-source API handling
- Use raw.githubusercontent.com to download cask source rather than
  formulae.brew.sh. This allows us to remove these files
- output the tap's current `HEAD` for both formulae and cask JSON
- use this `HEAD` for the cask-source API to get the exact file on
  raw.githubusercontent.com rather than just whatever is newest (which
  is what the previous API did)
- set the `Tap` correctly when creating a `Cask` from the API
- if the `formula.json` file exists: print its modified time include
  `brew config`
- memoize `tap.git_head` as we'll be calling it a lot in the same
  process with the same value
2023-01-26 17:36:40 +00:00
Douglas Eichelberger
259e4ae718 Enable RSpec/LeakyConstantDeclaration 2023-01-26 09:24:38 -08:00
Mike McQuaid
1c85a717cc
Merge pull request #14421 from hyuraku/move_check_binary_arches-to-extend-os
move `check_binary_arches` to `extend/os`
2023-01-26 15:26:44 +00:00
hyuraku
2d864d70e0 apply extend/os to migrate_gcc_dependents_if_needed 2023-01-26 22:21:45 +09:00
hyuraku
420d66532d remove a line 2023-01-26 21:42:46 +09:00
hyuraku
3f553a8ead add linux's binary_executable_or_library_files to keg 2023-01-26 21:41:45 +09:00
hyuraku
9241def1a2 reset formula_cellar_checks 2023-01-26 21:41:01 +09:00
Mike McQuaid
7e77b89e28
Merge pull request #14428 from Homebrew/dependabot/bundler/Library/Homebrew/rubocop-1.44.1
build(deps): bump rubocop from 1.44.0 to 1.44.1 in /Library/Homebrew
2023-01-26 12:07:53 +00:00
Mike McQuaid
9d30f9e582
Merge pull request #14427 from Homebrew/dependabot/bundler/Library/Homebrew/activesupport-6.1.7.2
build(deps): bump activesupport from 6.1.7.1 to 6.1.7.2 in /Library/Homebrew
2023-01-26 12:05:28 +00:00
Mike McQuaid
be67d6c9b5
Merge pull request #14436 from MikeMcQuaid/cask_stage_only_string
cask/artifact/stage_only: allow string argument.
2023-01-26 11:59:02 +00:00
Mike McQuaid
639c28631d
Merge pull request #14434 from MikeMcQuaid/install_from_api_autoupdate
cmd/update: tweak API update behaviour.
2023-01-26 11:43:04 +00:00
Mike McQuaid
7b4f025ca6
Merge pull request #14435 from MikeMcQuaid/install_from_api_head
install: better error when using API and --HEAD.
2023-01-26 11:40:40 +00:00
BrewTestBot
32f2f75c64
Update RBI files for rubocop.
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gems.yml) workflow.
2023-01-26 11:37:43 +00:00
BrewTestBot
1a2dad8ee0
Update RBI files for activesupport.
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gems.yml) workflow.
2023-01-26 11:35:20 +00:00
BrewTestBot
cb4402e835
brew vendor-gems: commit updates. 2023-01-26 11:31:17 +00:00
BrewTestBot
e6f4089d68
brew vendor-gems: commit updates. 2023-01-26 11:29:23 +00:00
dependabot[bot]
f8ae61b616
build(deps): bump activesupport in /Library/Homebrew
Bumps [activesupport](https://github.com/rails/rails) from 6.1.7.1 to 6.1.7.2.
- [Release notes](https://github.com/rails/rails/releases)
- [Changelog](https://github.com/rails/rails/blob/v7.0.4.2/activesupport/CHANGELOG.md)
- [Commits](https://github.com/rails/rails/compare/v6.1.7.1...v6.1.7.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-26 11:25:40 +00:00
dependabot[bot]
6f3ca9ccf1
build(deps): bump rubocop from 1.44.0 to 1.44.1 in /Library/Homebrew
Bumps [rubocop](https://github.com/rubocop/rubocop) from 1.44.0 to 1.44.1.
- [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.44.0...v1.44.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-26 11:25:38 +00:00
Mike McQuaid
61d6f7c4ca
cask/artifact/stage_only: allow string argument.
This is what's passed from the JSON API.
2023-01-26 11:22:18 +00:00
Mike McQuaid
950eb8a128
Merge pull request #14432 from Homebrew/revert-14418-enable-LeakyConstantDeclaration
Revert "Enable RSpec/LeakyConstantDeclaration"
2023-01-26 11:17:34 +00:00
Mike McQuaid
97def3c104
install: better error when using API and --HEAD.
- Tell people what to do to resolve this
- Tweak the instruction ordering to be consistent elsewhere
2023-01-26 11:08:56 +00:00
Mike McQuaid
91884e0837
cmd/update: tweak API update behaviour.
- Use `HOMEBREW_CASK_REPOSITORY` more consistently
- Skip auto-updating homebrew-core for `HOMEBREW_DEVELOPER` too (without
  explicit `brew update`)
- Also skip auto-updating homebrew-cask
2023-01-26 10:58:21 +00:00