34305 Commits

Author SHA1 Message Date
Mike McQuaid
dd32c7a92c
Merge pull request #14765 from Homebrew/sponsors-maintainers-man-completions
Update manpage and completions.
2023-02-22 16:45:08 +00:00
BrewTestBot
2d75110351
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-22 16:22:15 +00:00
Mike McQuaid
b4e9f33c62
Merge pull request #14722 from issyl0/contributions-all-maintainers-sentence
dev-cmd/contributions: Stats for all maintainers
2023-02-22 16:21:23 +00:00
Issy Long
214110f665
dev-cmd/contributions: Stats for all maintainers
- With `brew contributions`, this will output a list of stats
  (across the specified time period, or all time) for people in the
  "maintainers" team on GitHub.
- Add a `--user` flag for getting stats for a specific user (either
  username, name or email address).
- This assumes that their Git committer details are the same as their name is
  set to on GitHub.
- Show an error message if trying to generate a CSV for the full maintainer
  list, since I haven't worked out how to best show all of that info yet (or
  even how best to show only the totals across everything for every user) in
  that format.
2023-02-22 16:05:58 +00:00
Mike McQuaid
5272640cfc
Merge pull request #14761 from Homebrew/sponsors-maintainers-man-completions
Update sponsors.
2023-02-22 14:28:50 +00:00
BrewTestBot
c1999257b0
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-22 14:13:13 +00:00
BrewTestBot
5ac8437188
Update sponsors.
Autogenerated by the [sponsors-maintainers-man-completions](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/sponsors-maintainers-man-completions.yml) workflow.
2023-02-22 14:12:54 +00:00
Issy Long
93ce211ebd
Merge pull request #14737 from issyl0/api-commits-for-person
dev-cmd/contributions: Use GitHub APIs for commit author info
2023-02-22 14:12:16 +00:00
Mike McQuaid
4e0a9b8771
Merge pull request #14758 from reitermarkus/livecheck-extract-plist
Don't preprocess URL for `:extract_plist` strategy.
2023-02-22 13:31:19 +00:00
Mike McQuaid
d877203336
Merge pull request #14755 from dduugg/consolidate-rubocop-configs
Consolidate some rubocop configurations
2023-02-22 12:34:51 +00:00
Sean Molenaar
6d3b38c93a
Merge pull request #14747 from SMillerDev/feat/cask/audit_pkg_signing
cask: audit for correct signing of pkg installers
2023-02-22 13:33:10 +01:00
Mike McQuaid
688d473a59
Merge pull request #14740 from unitof/update-docs-v4
Formula-Cookbook: update for Homebrew v4
2023-02-22 12:31:42 +00:00
Mike McQuaid
8948a3a6e1
Merge pull request #14751 from MikeMcQuaid/analytics_tweak_constants
utils/analytics: tweaks constants.
2023-02-22 11:40:39 +00:00
Markus Reiter
62ac2dda8b
Don't preprocess URL for :extract_plist strategy. 2023-02-22 10:37:51 +01:00
Nanda H Krishna
a3207a0390
Merge pull request #14754 from Homebrew/sorbet-files-update
sorbet: Update RBI files.
2023-02-21 23:05:52 -05:00
Douglas Eichelberger
769117f552 Collapse AllowedNames 2023-02-21 18:04:32 -08:00
Douglas Eichelberger
ed8363fd72 Consolidate some rubocop configurations 2023-02-21 16:50:29 -08:00
BrewTestBot
4856b9f436
sorbet: Update RBI files.
Autogenerated by the [sorbet](https://github.com/Homebrew/brew/blob/master/.github/workflows/sorbet.yml) workflow.
2023-02-22 00:28:05 +00:00
Mike McQuaid
7ac31f7d65
Merge pull request #14732 from dduugg/formula-cop-mixin
Refactor FormulaCop as an abstract class
2023-02-21 23:05:58 +00:00
Mike McQuaid
da6d355c52
Merge pull request #14743 from reitermarkus/official-cask-taps
Use `OFFICIAL_CASK_TAPS` constant.
2023-02-21 23:05:32 +00:00
Mike McQuaid
076f36d8df
Merge pull request #14745 from reitermarkus/livecheck-extract-plist
Look for all packages if specified packages are not found.
2023-02-21 23:04:59 +00:00
Mike McQuaid
a98cc1f016
Merge pull request #14744 from reitermarkus/bump-unversioned-casks
Ignore discontinued casks in `bump-unversioned-casks`.
2023-02-21 23:04:44 +00:00
Mike McQuaid
5b14404e72
Merge pull request #14750 from MikeMcQuaid/more_metrics_disabled
rubocop.yml: disable more metrics.
2023-02-21 23:03:48 +00:00
Jacob Ford
a591cad985
Formula-Cookbook: generalize locations
Co-authored-by: Eric Knibbe <enk3@outlook.com>
2023-02-21 15:27:44 -05:00
Mike McQuaid
059945ae0d
Merge pull request #14738 from aristocrates/patch-1
Improve unversioned python location specification
2023-02-21 19:32:01 +00:00
Jacob Ford
926cba3e16
Formula-Cookbook: suggested edits from @MikeMcQuaid
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
2023-02-21 13:32:38 -05:00
Sean Molenaar
4dcf5f0ad7
cask: audit style fixes
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
2023-02-21 19:29:05 +01:00
Douglas Eichelberger
bd5a7f6a14
Update formula_cop.rb 2023-02-21 09:52:20 -08:00
Mike McQuaid
792ec7fc85
utils/analytics: tweaks constants.
This enables easier usage in `brew formula-analytics`.
2023-02-21 17:07:01 +00:00
Mike McQuaid
552902413a
rubocop.yml: disable more metrics.
Disable these in taps, too.
2023-02-21 16:31:43 +00:00
Sean Molenaar
c5786ea799
cask: audit for correct signing of pkg installers 2023-02-21 17:05:55 +01:00
Markus Reiter
f709a34d28
Look for all packages if specified packages are not found. 2023-02-21 14:06:33 +01:00
Markus Reiter
fbf85b7530
Ignore discontinued casks in bump-unversioned-casks. 2023-02-21 12:43:09 +01:00
Markus Reiter
8a81473179
Use OFFICIAL_CASK_TAPS constant. 2023-02-21 12:39:07 +01:00
Issy Long
c9e6b81b4b
utils/github: API.paginate_rest handles extra query params
- Functionally it doesn't matter that the URL will have an `&` at the
  end if `additional_query_params` is `nil`, because it doesn't affect
  the URL at all.
2023-02-21 11:06:30 +00:00
Mike McQuaid
853b33bcda
Merge pull request #14742 from apainintheneck/respect-quiet-with-api-downloads
api: respect --quiet
2023-02-21 09:23:07 +00:00
Mike McQuaid
98d9f28307
Merge pull request #14739 from issyl0/rubocop-disable-all-metrics
rubocop: Entirely disable `Metrics` cops
2023-02-21 09:16:28 +00:00
Mike McQuaid
f0fbeba2ef
Merge pull request #14723 from carlocab/zlib-mtime
utils/gzip: set `mtime = 1` when `mtime == 0`.
2023-02-21 09:04:55 +00:00
Mike McQuaid
11f94af0f2
docs: fix up more brew --prefix usage.
The new form used to be slow but both are now fast.
2023-02-21 08:57:12 +00:00
apainintheneck
0b3b54e75d api: respect --quiet 2023-02-20 23:23:42 -08:00
Jacob Ford
c70ce7a4bf Formula-Cookbook: correct HOMEBREW_NO_INSTALL_FROM_API value 2023-02-21 00:03:00 -05:00
Douglas Eichelberger
387d2f859f Use exclude_from_registry instead 2023-02-20 18:14:47 -08:00
Douglas Eichelberger
d9db5e8825 Refactor FormulaCop as a mixin 2023-02-20 18:14:47 -08:00
Jacob Ford
44a43f1a46 Formulae-Cookbook: update for Homebrew v4 2023-02-20 19:52:38 -05:00
Issy Long
0a6c59c0b3
dev-cmd/contributions: Less disgusting way to determine brew's NWO 2023-02-21 00:51:32 +00:00
Issy Long
298bb65dfb
rubocop: Entirely disable Metrics cops
- These are arbitrary length limits that had a load of disables in code.
- The limits were only increasing over time rather than decreasing.
- Fixing the problematic code to be shorter would take a long time for
  questionable gain since the problem has been around so long.
2023-02-21 00:34:17 +00:00
Nicholas (Nick) Meyer
5b80085837
Improve unversioned python location specification
brew --prefix python errors out when the python package is not
installed, so using that instead of brew --prefix prevents python
package installation issues from silently breaking, for example, shell
env scripts that add this to $PATH.

See https://github.com/orgs/Homebrew/discussions/3596#discussioncomment-5050569
2023-02-20 16:28:42 -08:00
Bo Anderson
7e48ed50f7
Merge pull request #14736 from aphedges/fix-bash-completion
Handle undeclared POSIXLY_CORRECT in Bash completions
2023-02-21 00:14:22 +00:00
Alex Hedges
5ed06a7956 Handle undeclared POSIXLY_CORRECT in Bash completions
As of `brew` 4.0.2, sourcing the Bash completions with `set -eu` causes a
failure if `POSIXLY_CORRECT` is not declared. The check will now
properly handle this situation.

I'm not sure if the resulting code is POSIX-compliant, but it prevents a
breaking change until a better solution can be found.
2023-02-20 18:36:59 -05:00
Issy Long
d3827b12f2
dev-cmd/contributions: Use GitHub APIs for commit author info
- Using `git log` was brittle with name changes and email address changes for
  contributors over the years unless we made a Git `mailmap` file which brings
  with it its own updatedness overhead.
- Let's use the GitHub commits API (importantly _not_ the search API) so that
  we can give it a username and it will return contributions associated with
  every email address on that user's account:
  https://docs.github.com/en/rest/commits/commits?apiVersion=2022-11-28#list-commits--parameters.
- This is quite significantly slower, but it's worth it for correctness
  especially when we get to all maintainers' contributions (in a separate PR).
- The commits API does not (yet?) support trailers or commit "committer"s, just
  authors.
2023-02-20 23:24:54 +00:00