Carlo Cabrera
e2082f0c53
workflows/tests: avoid resetting homebrew/bundle
...
This command was being called with the wrong relative path, so it
silently did nothing. Now that `update-reset` errors out from invalid
arguments, we know that running `update-reset` here is not needed.
2023-02-28 21:47:08 +08:00
Carlo Cabrera
53053e0625
cmd/update-reset: improve arg validation
...
This is based on feedback from #14667 .
2023-02-28 20:38:00 +08:00
Carlo Cabrera
12364d70d2
Revert "cmd/update-reset: accept tap names as arguments"
...
This reverts commit ac7dbc008284e1a85353548eb8e15c008be902ec.
2023-02-28 20:30:40 +08: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
Mike McQuaid
17c872fb52
Merge pull request #14657 from MikeMcQuaid/tap_cask_api
...
tap: return the default_remote if not installed.
4.0.1
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
2372ed39f2
Merge pull request #14654 from MikeMcQuaid/analytics_cmd_google
...
cmd/analytics: note Google Analytics differences.
2023-02-16 12:00:25 +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
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
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
Sean Molenaar
50e9247da4
fix: add better keys and fuller values to influxDB analytics
2023-02-15 14:12:05 +01: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