36540 Commits

Author SHA1 Message Date
Douglas Eichelberger
8a01478fb1 Remove stray rubocop:enable comments 2023-02-24 08:26:22 -08:00
Mike McQuaid
1c25ddb86a
Merge pull request #14797 from MikeMcQuaid/cask_github_api
cmd/info: handle casks with API.
2023-02-24 16:01:14 +00:00
Mike McQuaid
a72573a6bc
Merge pull request #14507 from maxim-belkin/cache-doctor-checks
Bash completions: cache names of 'doctor' checks
2023-02-24 15:47:17 +00:00
Mike McQuaid
4ef8632687
cmd/info: handle casks with API.
Fall back to default location.
2023-02-24 15:44:53 +00:00
Maxim Belkin
5382774848 Update Bash completion tests 2023-02-24 15:23:13 +00:00
Mike McQuaid
3573cf074f
Merge pull request #14795 from Bo98/cask-api-url_specs
cask: support url specs in API
2023-02-24 15:07:20 +00:00
Mike McQuaid
64f453ee4e
Merge pull request #14793 from Bo98/audit-api
Scope `HOMEBREW_NO_INSTALL_FROM_API` to core formulae in `brew audit`
2023-02-24 14:39:20 +00:00
Bo Anderson
aebc125e9c
cask: support url specs in API 2023-02-24 13:56:46 +00:00
Mike McQuaid
e95ce6967a
brew style --fix 2023-02-24 13:50:07 +00:00
Bo Anderson
559bec95bc
Scope HOMEBREW_NO_INSTALL_FROM_API to core formulae in brew audit 2023-02-24 13:33:46 +00:00
Mike McQuaid
041545db2c
Merge pull request #14735 from reitermarkus/revert-14729-revert-14711-extract-permissions
Revert "Revert "Fix permissions before moving extracted files.""
2023-02-24 12:59:59 +00:00
Mike McQuaid
aeda0c473f
Merge pull request #14792 from Bo98/cask-contents-checksum
cask_loader: fix missing checksum in FromContentsLoader
2023-02-24 12:55:11 +00:00
Mike McQuaid
bb4d518c0b
Merge pull request #14783 from MikeMcQuaid/official_tap_formula_cask_subdirs
Support loading formulae/casks from subdirectories
2023-02-24 12:47:46 +00:00
Bo Anderson
09eb7b3dcb
cask_loader: fix missing checksum in FromContentsLoader 2023-02-24 12:09:34 +00:00
Markus Reiter
7a2aa85225
Only make directories writable when extracting. 2023-02-24 12:28:05 +01:00
Markus Reiter
ebfc3996fd
Allow “which” as context prefix. 2023-02-24 12:28:05 +01:00
Markus Reiter
fa2d917dec
Add test for extracting unwritable files. 2023-02-24 12:28:05 +01:00
Markus Reiter
347bc4535f
Fix permissions for extracted files. 2023-02-24 12:28:04 +01:00
Mike McQuaid
f280ce069b
Support loading formulae/casks from subdirectories
Previously, we required all formulae and casks to be in a specific
formula or cask directory but did not check any subdirectories.

This commit allows using subdirectories for official taps, the only
ones likely to be big enough to warrant sharding in this way and to
avoid potentially breaking backwards compatibility for existing taps.

This was inspired by the most recent issues with homebrew-cask.
2023-02-24 10:57:41 +00:00
Mike McQuaid
2d31f80f5c
Merge pull request #14773 from reitermarkus/extract-signatures
Add signatures for extraction functions.
2023-02-24 09:50:46 +00:00
Mike McQuaid
d5ae257efe
Merge pull request #14790 from Homebrew/sorbet-files-update
sorbet: Update RBI files.
2023-02-24 08:29:36 +00:00
Maxim Belkin
d3da5a340d
Bash completions: cache names of 'doctor' checks 2023-02-23 18:36:51 -07:00
BrewTestBot
ff43853c8f
sorbet: Update RBI files.
Autogenerated by the [sorbet](https://github.com/Homebrew/brew/blob/master/.github/workflows/sorbet.yml) workflow.
2023-02-24 00:29:35 +00:00
Issy Long
8d4bdbafc4
dev-cmd/contributions: CSV output of totals per maintainer
- Turns out in my head a few days ago I was overcomplicating this. I had a
  brainwave while in the shower.
- Some refactoring so that we call `totals` to sum up the hash of hashes less,
  since the grand total numbers are now used in multiple places.
2023-02-23 23:35:45 +00:00
DenizUgur
46aefe776f fix tests 2023-02-23 11:08:39 -08:00
DenizUgur
026709962d update tests 2023-02-23 11:02:20 -08:00
Sam Ford
a0a366e22d
PageMatch: Tweak documentation comments 2023-02-23 13:41:56 -05:00
BrewTestBot
40f286fc42
Update RBI files for rubocop.
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gems.yml) workflow.
2023-02-23 18:26:08 +00:00
BrewTestBot
30a64593f6
brew vendor-gems: commit updates. 2023-02-23 18:18:18 +00:00
Sam Ford
7735036c56
livecheck: Add Json strategy
This adds a generic `Json` strategy to livecheck that requires a
`strategy` block to operate. This is primarily intended as a
replacement for existing `strategy` blocks in formulae/casks that
use `JSON#parse`, as it allows us to internalize/standardize that
boilerplate while improving error-handling.

Additionally, future strategies that parse JSON data can use the
`Json#find_versions` method instead of having to reinvent the wheel
(similar to how we currently have a number of strategies that
leverage `PageMatch#find_versions`).
2023-02-23 13:17:35 -05:00
DenizUgur
f4ed502350 run_at_load set to true by default 2023-02-23 10:15:06 -08:00
dependabot[bot]
e91b60ef68
build(deps): bump rubocop from 1.45.1 to 1.46.0 in /Library/Homebrew
Bumps [rubocop](https://github.com/rubocop/rubocop) from 1.45.1 to 1.46.0.
- [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.45.1...v1.46.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-23 18:14:31 +00:00
Mike McQuaid
d7029e95cd
Merge pull request #14769 from dduugg/enable-types
Enable typing in Cask::Artifact
2023-02-23 18:02:44 +00:00
Mike McQuaid
7d7e494bc2
Merge pull request #14784 from MikeMcQuaid/super_sdk_nil
os/mac/extend/ENV/super: handle nil sdk.
2023-02-23 16:10:05 +00:00
Mike McQuaid
b3db997e7b
os/mac/extend/ENV/super: handle nil sdk.
I'm aware this is not meant to happen but: sometimes it does and the
lack of handling produces a subpar error.
2023-02-23 15:31:04 +00:00
Mike McQuaid
68859ae256
Merge pull request #14782 from MikeMcQuaid/running_as_root_but_not_owned_by_root
api: don't download files as root when Homebrew's not owned by root.
2023-02-23 13:34:15 +00:00
Mike McQuaid
57ef4afe57
api: improve root messaging.
Co-authored-by: Bo Anderson <mail@boanderson.me>
2023-02-23 12:48:18 +00:00
Mike McQuaid
d1cba00ee3
Merge pull request #14779 from MikeMcQuaid/bye_atom
which_editor: remove Atom.
2023-02-23 10:20:10 +00:00
Mike McQuaid
2884b1649b
api: don't download files as root when Homebrew's not owned by root.
This was mentioned in a random comment. While we're here, make some
helper functions to query this a bit more nicely elsewhere when we do
it.
2023-02-23 10:04:50 +00:00
Mike McQuaid
5d06f6b9a6
Merge pull request #14781 from MikeMcQuaid/too_many_json_template
dev-cmd/generate-*-api: don't use same constant name.
2023-02-23 09:36:52 +00:00
Mike McQuaid
bd806419ca
Merge pull request #14772 from EricFromCanada/autogenerated-check
CI: check for changes to autogenerated files
2023-02-23 09:32:07 +00:00
Mike McQuaid
53c3db5df7
Merge pull request #14780 from Homebrew/sponsors-maintainers-man-completions
Update manpage and completions.
2023-02-23 09:18:25 +00:00
EricFromCanada
ec4d907d7d
CI: check for changes to autogenerated files 2023-02-23 09:17:56 +00:00
Mike McQuaid
2f47403f8c
dev-cmd/generate-*-api: don't use same constant name.
Otherwise Ruby warns.
2023-02-23 09:09:54 +00:00
Mike McQuaid
236208ff79
Merge pull request #14756 from apainintheneck/clean-up-extend-os-requires
extend/os: clean up requires
2023-02-23 09:07:59 +00:00
BrewTestBot
c57b760d12
Update manpage and completions.
Autogenerated by the [sponsors-maintainers-man-completions](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/sponsors-maintainers-man-completions.yml) workflow.
2023-02-23 09:03:06 +00:00
Mike McQuaid
f6d1fa62f1
Merge pull request #14762 from MikeMcQuaid/generate_api
Add generate-{cask,formula}-api commands
2023-02-23 09:02:15 +00:00
Mike McQuaid
aca3eead71
which_editor: remove Atom.
It's been deprecated. Make VSCode first because it's what we recommend.
2023-02-23 08:53:32 +00:00
Mike McQuaid
43209a1af1
Merge pull request #14775 from issyl0/github-api-commits-support-since-until
utils/github: Add date filtering to the commit author API query
2023-02-23 08:52:36 +00:00
Mike McQuaid
9c9213aabd
Apply suggestions from code review
Co-authored-by: Rylan Polster <rslpolster@gmail.com>
Co-authored-by: Bo Anderson <mail@boanderson.me>
2023-02-23 08:45:56 +00:00