Mike McQuaid
ad1213a7da
utils/analytics: make on_request a proper boolean.
...
Otherwise when it's `false` it's being turned into a `true` value.
2023-02-16 17:51:42 +00:00
Mike McQuaid
b38aca8a6e
Merge pull request #14666 from Bo98/no-api-write
...
api: avoid unnecessary file write operation
2023-02-16 16:59:36 +00:00
Mike McQuaid
0640cdce8d
Merge pull request #14669 from maxim-belkin/completions-no-posix
...
Bash completions: warn and exit if POSIX mode detected
2023-02-16 16:41:03 +00:00
Mike McQuaid
2ffd0d6503
Merge pull request #14668 from MikeMcQuaid/update_full_url_json
...
cmd/update.sh: provide full JSON URL.
2023-02-16 16:39:39 +00:00
Bo Anderson
ab6bef261c
api: avoid unnecessary file write operation
2023-02-16 16:23:13 +00:00
Maxim Belkin
216ad265af
Bash completions: warn and exit if POSIX mode detected
2023-02-16 16:04:30 +00:00
Mike McQuaid
aa2c2982a0
cmd/update.sh: provide full JSON URL.
...
This makes it clearer what site cannot be accessed.
2023-02-16 16:03:22 +00:00
Carlo Cabrera
ac7dbc0082
cmd/update-reset: accept tap names as arguments
...
Currently, doing `brew update-reset homebrew/core` does nothing (not
even return an error). If you want to `update-reset` a given tap, you
must do (the equivalent of)
brew update-reset "$(brew --repository owner/tap_name)"
This isn't very intuitive, so let's do a bit more work in argument
parsing so that the user can just pass a tap name instead of a path to a
tap.
Passing a path to a tap is also still supported.
2023-02-16 23:57:31 +08:00
Issy Long
d7d775a4ef
Merge pull request #14642 from issyl0/contributions-csv
...
dev-cmd/contributions: CSV output of queried repos; shorter sentence
2023-02-16 15:40:12 +00:00
Mike McQuaid
a83fef7b41
utils/analytics: cleanup data.
...
Based on reviewing InfluxDB buckets.
2023-02-16 13:15:04 +00:00
Mike McQuaid
ef8ad10741
utils/analytics: fix BuildError reporting.
...
Need to ensure we call the correct methods to avoid duplicates.
2023-02-16 12:59:46 +00:00
Mike McQuaid
17c872fb52
Merge pull request #14657 from MikeMcQuaid/tap_cask_api
...
tap: return the default_remote if not installed.
2023-02-16 12:52:25 +00:00
Mike McQuaid
49a1daebab
Merge pull request #14655 from MikeMcQuaid/api_cask_source
...
api: use formulae.brew.sh for cask-source API again.
2023-02-16 12:34:33 +00:00
Mike McQuaid
53c57d7a70
tap: return the default_remote if not installed.
...
Fixes #14656 .
2023-02-16 12:25:28 +00:00
Mike McQuaid
f7f04bae26
api: use formulae.brew.sh for cask-source API again.
...
GitHub's raw endpoint is proving hilariously unreliable for us here.
2023-02-16 12:05:38 +00:00
Mike McQuaid
9a02d48de7
cmd/analytics: note Google Analytics differences.
...
Be more explicit about when Google Analytics is disabled and when the
is used or not.
2023-02-16 09:44:07 +00:00
danielnachun
99f968535f
linkage_checker: add libquadmath
2023-02-15 19:18:11 -08: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
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
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
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
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
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
Mike McQuaid
17f19a85fe
Merge pull request #14637 from Bo98/api-git-clone
2023-02-15 07:25:46 +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
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
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
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
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