35804 Commits

Author SHA1 Message Date
danielnachun
99f968535f
linkage_checker: add libquadmath 2023-02-15 19:18:11 -08:00
Rylan Polster
6f195c1e6f
Merge pull request #14650 from Homebrew/sorbet-files-update
sorbet: Update RBI files.
4.0.0
2023-02-15 21:52:40 -05:00
BrewTestBot
fc9d78711c
sorbet: Update RBI files.
Autogenerated by the [sorbet](https://github.com/Homebrew/brew/blob/master/.github/workflows/sorbet.yml) workflow.
2023-02-16 00:30:09 +00:00
Mike McQuaid
e42cae19a5
Merge pull request #14647 from MikeMcQuaid/report_influxdb_default
analytics: report to InfluxDB by default.
2023-02-15 19:19:41 +00:00
Mike McQuaid
dbd9f72638
Merge pull request #14648 from MikeMcQuaid/influxdb_token
analytics: update token.
2023-02-15 18:11:06 +00:00
Mike McQuaid
381238b545
Merge pull request #14646 from MikeMcQuaid/auto_update_secs
Further adjust `HOMEBREW_AUTO_UPDATE_SECS`
2023-02-15 18:08:27 +00:00
Mike McQuaid
039d2f8fd9
Merge pull request #14645 from Homebrew/sponsors-maintainers-man-completions
Update manpage and completions.
2023-02-15 17:53:32 +00:00
Mike McQuaid
98022b2061
Merge pull request #14644 from MikeMcQuaid/api_auto_update_secs
env_config: reduce api_auto_update_secs.
2023-02-15 17:50:51 +00:00
DenizUgur
66fe6d4169 remove onActiveSec 2023-02-15 09:49:08 -08:00
Mike McQuaid
f39ab585b9
Further adjust HOMEBREW_AUTO_UPDATE_SECS
Add another case to update once an hour when developer commands have
been run.
2023-02-15 17:37:12 +00:00
Mike McQuaid
dfd4cd9b0c
analytics: update token.
We've deleted the old data and added a new bucket with a new token.
2023-02-15 17:32:34 +00:00
Mike McQuaid
769a8c5001
analytics: report to InfluxDB by default.
Now that this is ready: let's roll it out to everyone in 4.0.0.
2023-02-15 17:27:02 +00:00
BrewTestBot
fa82d2a268
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-15 17:21:46 +00:00
Mike McQuaid
ba06013f72
Merge pull request #14583 from SMillerDev/fix/analytics/improve_keys
fix: add better keys and fuller values to influxDB analytics
2023-02-15 17:20:51 +00:00
Mike McQuaid
a5c4ce59ff
env_config: reduce api_auto_update_secs.
We're reducing this in formulae.brew.sh too.
2023-02-15 17:17:51 +00:00
Mike McQuaid
c5252817c2
analytics: refactor InfluxDB/Google handling. 2023-02-15 16:34:50 +00:00
Mike McQuaid
933cf0bd78
Merge pull request #14628 from dduugg/upgrade-type
Enable typing in Homebrew::Upgrade
2023-02-15 14:58:32 +00:00
Mike McQuaid
8570cb9729
Merge pull request #14630 from dduugg/type-requirement
Enable typing in Requirement classes
2023-02-15 14:55:23 +00:00
Douglas Eichelberger
7fb87abefd
Enable typing in Homebrew::Upgrade 2023-02-15 14:24:58 +00:00
Douglas Eichelberger
4deb4c1813
Enable typing in Requirement classes 2023-02-15 14:22:03 +00:00
Issy Long
43a88cbd97
dev-cmd/contributions: Appease RuboCop 2023-02-15 14:04:05 +00:00
Issy Long
44edad85bc
dev-cmd/contributions: Add a grand total row to the CSV
```
$ brew contributions issyl0 --csv
The user issyl0 has made 1203 contributions in all time.
user,repo,commits,coauthorships,signoffs,total
issyl0,brew,333,13,0,346
issyl0,core,473,24,326,823
issyl0,cask,4,0,0,4
issyl0,aliases,0,0,0,0
issyl0,autoupdate,1,0,0,1
issyl0,bundle,14,2,0,16
issyl0,command-not-found,1,0,0,1
issyl0,test-bot,3,0,0,3
issyl0,services,9,0,0,9
issyl0,cask-drivers,0,0,0,0
issyl0,cask-fonts,0,0,0,0
issyl0,cask-versions,0,0,0,0
issyl0,*,*,*,*,1203
```
2023-02-15 14:00:05 +00:00
Issy Long
9aad9d011b
dev-cmd/contributions: Add a per-repo total column to the CSV
```
$ brew contributions issyl0 --csv
The user issyl0 has made 1202 contributions in all time.
user,repo,commits,coauthorships,signoffs,total
issyl0,brew,332,13,0,345
issyl0,core,473,24,326,823
issyl0,cask,4,0,0,4
issyl0,aliases,0,0,0,0
issyl0,autoupdate,1,0,0,1
issyl0,bundle,14,2,0,16
issyl0,command-not-found,1,0,0,1
issyl0,test-bot,3,0,0,3
issyl0,services,9,0,0,9
issyl0,cask-drivers,0,0,0,0
issyl0,cask-fonts,0,0,0,0
issyl0,cask-versions,0,0,0,0
```
2023-02-15 13:58:49 +00:00
Sean Molenaar
50e9247da4
fix: add better keys and fuller values to influxDB analytics 2023-02-15 14:12:05 +01:00
Issy Long
2719c345ab
dev-cmd/contributions: CSV output of queried repos; shorter sentence
- This gives users of this command a `--csv` option to pass to... you guessed
  it, generate a CSV that's `pbcopy`able elsewhere, for more granular
  breakdowns of where a person contributed.
- Inspiration was taken from the mockup in
  https://github.com/Homebrew/brew/issues/13642#issuecomment-1254535251
  but without the extra dependency of the TerminalTable gem.
- Always print a condensed "total contributions" sentence.

Output:

```
$ brew contributions issyl0
The user issyl0 has made 1201 contributions in all time.

$ brew contributions issyl0 --csv
user,repo,commits,coauthorships,signoffs
issyl0,brew,331,13,0
issyl0,core,473,24,326
issyl0,cask,4,0,0
issyl0,aliases,0,0,0
issyl0,autoupdate,1,0,0
issyl0,bundle,14,2,0
issyl0,command-not-found,1,0,0
issyl0,test-bot,3,0,0
issyl0,services,9,0,0
issyl0,cask-drivers,0,0,0
issyl0,cask-fonts,0,0,0
issyl0,cask-versions,0,0,0
```
2023-02-15 12:47:10 +00:00
Carlo Cabrera
42a2a8e5c7
Merge pull request #14633 from gromgit/patch-1
docs: no more homedir installs
2023-02-15 20:36:35 +08:00
Mike McQuaid
d87c7d718f
Merge pull request #14580 from carlocab/closed-prs
formula_auditor: allow references to merged PRs
2023-02-15 12:10:03 +00:00
Adrian Ho
5d826390c7
docs: no more homedir installs
Capability removed via https://github.com/Homebrew/install/pull/702
2023-02-15 12:05:09 +00:00
Mike McQuaid
08c6b4556d
Merge pull request #14616 from reitermarkus/audit-cask-version
Add audit for versions containing colons or slashes.
2023-02-15 11:59:59 +00:00
Carlo Cabrera
72d8a50e7a
Disallow references to PRs that are closed but not merged 2023-02-15 16:18:48 +08:00
Carlo Cabrera
82a3af6ce1
Merge pull request #14640 from carlocab/homebrew-env-vars
bin/brew: refine generation of `HOMEBREW_*` env vars
2023-02-15 15:55:27 +08:00
Mike McQuaid
17f19a85fe
Merge pull request #14637 from Bo98/api-git-clone 2023-02-15 07:25:46 +00:00
Mike McQuaid
56adf8cd3d
Merge pull request #14635 from Bo98/api-analytics 2023-02-15 07:21:16 +00:00
Bo Anderson
efc5088f85
formulary: fix git clone handling for API formulae 2023-02-15 05:31:23 +00:00
Bo Anderson
7ef0c48362
Fix analytics handling when core/cask taps are untapped 2023-02-15 05:31:08 +00:00
Carlo Cabrera
6f63be411b
bin/brew: refine generation of HOMEBREW_* env vars
We inherit some variables from the user's environment but prefix them
with `HOMEBREW_`. This is the case for (1) variables documented in the
manpage and also for some (2) variables used internally by `brew`.

We currently treat both types identically, but we should not. In
particular, we allow users to override type (1), but we don't want to do
this for type (2).

This was partially fixed in f4103e5d61526cfbf7f31540ba45ec171adc452e,
but that fix did not go far enough. Some variables that the user should
not be allowed to override can still be overridden.

This change completes the partial fix and refactors the code so that
we're less likely to mistakenly conflate the two types of variables in
the future.
2023-02-15 13:27:02 +08:00
Bo Anderson
f2c9db2626
Merge pull request #14638 from Bo98/ci-fix
test/cask/cask_spec: fix test
2023-02-15 05:26:59 +00:00
Bo Anderson
6e1b9ddb49
test/cask/cask_spec: fix test 2023-02-15 04:59:07 +00:00
Bo Anderson
724e3e646a
Merge pull request #14622 from Bo98/prefix.sh-api
prefix.sh: support API mode
2023-02-15 02:34:27 +00:00
Bo Anderson
0cfa7bddef
Merge pull request #14631 from Homebrew/sorbet-files-update
sorbet: Update RBI files.
2023-02-15 02:33:05 +00:00
BrewTestBot
7af0425793
sorbet: Update RBI files.
Autogenerated by the [sorbet](https://github.com/Homebrew/brew/blob/master/.github/workflows/sorbet.yml) workflow.
2023-02-15 00:30:37 +00:00
Mike McQuaid
c87090e1a0
Merge pull request #14627 from MikeMcQuaid/master
cask/cask: fix non-absolute home error.
2023-02-14 17:43:14 +00:00
Mike McQuaid
1d61b219db
cask/cask: fix non-absolute home error.
Needs a leading slash to avoid `File.expand.path` complaining about non-absolute home.
2023-02-14 17:22:18 +00:00
Mike McQuaid
98f5213954
Merge pull request #14615 from MikeMcQuaid/generating_hash_appdir
Overhaul Formula/Cask JSON generation
2023-02-14 15:02:19 +00:00
Mike McQuaid
237eec8ef8
Overhaul Formula/Cask JSON generation
- Use constants for placeholders
- Monkeypatch to set `HOMEBREW_PREFIX` consistently to placeholder
- Use environment variable to set `Dir.home` consistently to placeholder
- Use `appdir` short-circuit to set `Cask#appdir` consistently to placeholder
- Use `Cask.generating_hash!` to enable "generating mode" with these patches
- Fix `Formula#caveats` from JSON

Fixes #14505
Fixes #14595
2023-02-14 14:19:40 +00:00
Mike McQuaid
66c9d5f2af
Merge pull request #14620 from Kentzo/sudo-env
sudo: pass env variables without /usr/bin/env
2023-02-14 14:13:37 +00:00
Mike McQuaid
9725e764f5
system_command: fix typo. 2023-02-14 13:02:59 +00:00
Mike McQuaid
cedd4d33e4
Merge pull request #14570 from s4nji/patch-1
Update documentation for `brew install` and FAQ regarding `HOMEBREW_NO_INSTALL_FROM_API`
2023-02-14 12:38:20 +00:00
DenizUgur
16b51d2a43 revert type check 2023-02-14 04:24:26 -08:00
Sanjito Kurniawan
c7b8b3a989
docs/FAQ: correct an entry regarding simple formula edit
Co-authored-by: Kevin <apainintheneck@gmail.com>
2023-02-14 12:04:37 +00:00