Razvan Azamfirei
22eb43ca37
syntax fix
2023-04-05 20:07:58 -04:00
Razvan Azamfirei
acc598fdc9
Update env_config.rb
...
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
2023-04-05 19:29:57 -04:00
Razvan Azamfirei
87b4f1f396
Update env_config.rb
2023-04-05 19:26:20 -04:00
Razvan Azamfirei
28490626fd
style fixes
2023-04-05 09:44:32 -04:00
Razvan Azamfirei
183fad82a6
add greedy option
2023-04-05 09:28:15 -04:00
Razvan Azamfirei
540a5b9d30
temp
2023-03-31 18:01:34 -04:00
Mike McQuaid
6fd54eba5f
Merge pull request #14985 from dduugg/no-compat
...
Remove compatibility layer
2023-03-15 13:48:00 -04:00
Markus Reiter
7591175f93
Fix env_config
generator.
2023-03-15 14:28:47 +01:00
Douglas Eichelberger
cc5b013cb9
Remove compatibility layer
2023-03-14 14:49:34 -07:00
Markus Reiter
fcca056f4c
Check CUSTOM_IMPLEMENTATIONS
for all variables.
2023-03-12 05:24:40 +01:00
Mike McQuaid
26182fd67a
Note that brew update
will only report all without API.
...
It's not worth supporting this option any longer given the API
constraints.
2023-03-03 08:51:58 +00:00
Bo Anderson
e86a8c2477
Move HOMEBREW_NO_INSTALL_FROM_API
defaults to shell
2023-02-24 21:53:08 +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
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
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
4c8ed77302
Improve homebrew/{core,cask} autotapping.
...
Don't automatically tap these when running a developer command that's
not using the API.
Fixes #14606
2023-02-14 09:54:24 +00:00
Mike McQuaid
75a20689b1
Add HOMEBREW_API_AUTO_UPDATE_SECS
...
This sets the default and allows customising how often we try to
download files from the API.
This does not affect `brew update` as we want to always check every time
on an explicit call.
2023-02-11 07:22:50 +00:00
EricFromCanada
dfc9906184
internal messaging fixes
2023-02-10 23:17:16 -05:00
Daniel Bayley
2ff90c3232
Fix HOMEBREW_BAT_CONFIG_PATH
hint
...
`HOMEBREW_BAT_CONFIG_PATH` should respect [`BAT_CONFIG_PATH`](https://github.com/sharkdp/bat#configuration-file ), in the same way that `HOMEBREW_BAT_THEME` [reflects](https://github.com/Homebrew/brew/pull/13385/files#diff-a8ebbe0466e56bdb9c7ebc74d5ffbd383b8c0902fcb5146cb1960e3d69dadeb1R78 ) `BAT_THEME`.
Previous, for context:
https://github.com/Homebrew/brew/pull/7488
https://github.com/Homebrew/brew/pull/11975
https://github.com/Homebrew/brew/pull/13385
2023-02-09 19:24:31 +00:00
Mike McQuaid
2a5d41d41b
Revert "Merge pull request #14547 from Homebrew/revert-14412-homebrew_install_from_api_default"
...
This reverts commit f4e60482791d2ff628efadfdbf0d14d9237d2d29, reversing
changes made to e26784f424061ca16987afcb21e036c66a298492.
2023-02-07 19:25:40 +01:00
Mike McQuaid
0575903868
Revert "HOMEBREW_INSTALL_FROM_API: make the default for everyone."
2023-02-07 15:13:23 +01:00
Mike McQuaid
5f6c69bca2
HOMEBREW_INSTALL_FROM_API: make the default for everyone.
...
- remove all places we check the flag so it's a no-op now
- flip the messaging to refer to `HOMEBREW_NO_INSTALL_FROM_API` where
relevant
- adjust the documentation
2023-02-05 18:13:08 +01:00
Xuehai Pan
ba3bccf9ed
api: download from HOMEBREW_API_DOMAIN
2023-02-04 13:05:20 +00:00
Mike McQuaid
46fc4f9f1b
Don't allow HOMEBREW_INSTALL_FROM_API when building from source
...
When either being in a non-default prefix or being on an unsupported
macOS version we expect most things to be built from source. In that
environment, do not allow HOMEBREW_INSTALL_FROM_API to be set.
Fixes #14475
2023-02-02 14:49:34 +00:00
Patrick Linnane
a544d6fe6a
docs: Remove Lion reference
2023-01-28 19:29:18 -08:00
Mike McQuaid
260ee0ee6a
Merge pull request #14375 from MikeMcQuaid/homebrew_no_install_from_api
...
Add HOMEBREW_NO_INSTALL_FROM_API
2023-01-18 17:47:46 +00:00
Mike McQuaid
4a03603f68
Add HOMEBREW_NO_INSTALL_FROM_API
...
This allows HOMEBREW_INSTALL_FROM_API functionality to be disabled and will stick around once
HOMEBREW_INSTALL_FROM_API is made the default behaviour.
Co-authored-by: Eric Knibbe <enk3@outlook.com>
2023-01-18 15:50:13 +00:00
Mike McQuaid
653b349c8b
Change HOMEBREW_INSTALL_FROM_API update frequency
...
This doesn't need to be nearly as often for HOMEBREW_INSTALL_FROM_API users because we're getting the latest information from the API when needed rather than just at `brew update` time.
2023-01-18 15:11:42 +00:00
Patrick Linnane
f81857140f
docs: Fix env variable typo
2022-11-10 07:33:52 -08:00
Xuehai Pan
d3093cd260
resource: automatic determine mirrors for PyPI resources
2022-09-16 01:57:19 +08:00
Mike McQuaid
e2759fbdff
Deprecate reading all formulae through commands
...
We added the `--all` flag (now renamed to `--eval-all`) for various
commands for this behaviour so let's start deprecating this.
Also, introduce a `HOMEBREW_EVAL_ALL` environment variable to use the
existing, less secure, behaviour by default and avoid passing
`--eval-all` everywhere.
2022-09-05 13:57:22 +01:00
apainintheneck
85cf0ca6d4
Updated env variable docs on manpage
...
Updated docs for:
HOMEBREW_AUTOREMOVE
HOMEBREW_NO_CLEANUP_FORMULAE
2022-07-17 09:31:05 -07:00
apainintheneck
fa43418bfb
Moved autoremove logic into autoremove.rb
...
This allows us to call that logic internally in other brew
commands instead of having to shell out.
2022-07-13 16:31:41 -07:00
apainintheneck
74f7b604cd
Changed env variable to HOMEBREW_AUTOREMOVE
2022-07-13 16:28:49 -07:00
apainintheneck
f8ae5f3bc4
cmd/uninstall: Add env variable that runs autoremove after uninstalls
...
When HOMEBREW_UNINSTALL_AUTOREMOVE is set, `brew autoremove` is run
after every successful call to `brew uninstall`.
2022-07-13 16:28:49 -07:00
Mike McQuaid
22d6af1258
Manual brew style fixes.
2022-06-30 08:56:21 +01:00
Mike McQuaid
2d5eab2e1c
brew style --fix
2022-06-30 08:56:21 +01:00
Mike McQuaid
8cb5350d65
Revert "Merge pull request #13447 from notfromstatefarm/feature/support-custom-ssh"
...
This reverts commit ef00b40a5172d5628a0c861f655a2277fd16a1e0, reversing
changes made to e1fca95836fcb1ad989cd995228192846fc99612.
2022-06-28 09:42:50 +01:00
Mike McQuaid
ef00b40a51
Merge pull request #13447 from notfromstatefarm/feature/support-custom-ssh
...
support forcing brew-installed SSH for git operations
2022-06-23 10:14:55 +02:00
notfromstatefarm
8d76522be2
remove HOMEBREW_SSH_PATH
2022-06-22 19:22:48 -04:00
notfromstatefarm
bcce038d33
update env_config.rb
2022-06-22 19:22:44 -04:00
Carlo Cabrera
7435373dd8
env_config: clean up default text for HOMEBREW_LIVECHECK_WATCHLIST
...
Follow up to #13453 . The default values for our other environment
variables are typically wrapped in backticks, so let's do the same here
for consistency.
Closes #13455 .
2022-06-22 11:26:23 +08:00
apainintheneck
3b65ecaf4c
livecheck: fix path to livecheck watchlist
2022-06-21 17:57:19 -07:00
Mike McQuaid
77203e0760
Document HOMEBREW_CURL_PATH and HOMEBREW_GIT_PATH
...
- document both these variables in `man brew`
- allow them to be used on Linux without `HOMEBREW_DEVELOPER`
2022-06-14 10:33:30 +01:00
Mike McQuaid
78695938ae
cmd/update-report: always output new formulae.
...
There's near zero performance overhead and this seems good for
discovery.
Fixes #13412
2022-06-13 09:12:32 +01:00
Kid
721a27d68d
dev-cmd/cat: support setting bat theme via environment variable
2022-06-06 08:44:47 +08:00
Mike McQuaid
04c8e02418
cmd/update-report: use better wording where appropriate.
...
From reading https://github.com/orgs/Homebrew/discussions/3328 : I
initially thought we should just change "Updated" to "Modified" when
appropriate. After conversation with Bo98, though, I thought more and
saw that we're already checking for outdated formulae here so, rather
than ever traverse through the formula history, look at the outdated
formula and list them unless we've set
`HOMEBREW_UPDATE_REPORT_ALL_FORMULAE` in which case we show the
modifications.
While we're here, also do a bit of reformatting and renaming to better
clarify intent.
2022-06-03 19:23:38 +01:00
Mike McQuaid
00c5960a6a
Merge pull request #13299 from MikeMcQuaid/update_improvements
...
Improve updating behaviour
2022-05-24 13:05:24 +01:00