Enable HOMEBREW_BOOTSNAP for developers

- Enable it by default if you've run a developer command or set
  `HOMEBREW_DEVELOPER`.
- Clarify the documentation that there's various configuration in which
  it doesn't work.

I've rolled this out of most of GitHub's developers with no ill effects
and we've enabled it in both CI and for various maintainers so it feels
appropriate to have a bigger rollout.
This commit is contained in:
Mike McQuaid 2021-02-23 09:35:21 +00:00
parent 787e6cb75f
commit 22fb25d96d
No known key found for this signature in database
GPG Key ID: 48A898132FD8EE70
4 changed files with 10 additions and 4 deletions

View File

@ -584,6 +584,11 @@ then
export HOMEBREW_BOTTLE_DOMAIN="$HOMEBREW_BOTTLE_DEFAULT_DOMAIN"
fi
if [[ -n "$HOMEBREW_DEVELOPER" || -n "$HOMEBREW_DEV_CMD_RUN" ]]
then
export HOMEBREW_BOOTSNAP="1"
fi
export HOMEBREW_BREW_DEFAULT_GIT_REMOTE="https://github.com/Homebrew/brew"
if [[ -z "$HOMEBREW_BREW_GIT_REMOTE" ]]
then

View File

@ -40,8 +40,9 @@ module Homebrew
description: "Use this username when accessing the Bintray API (where bottles are stored).",
},
HOMEBREW_BOOTSNAP: {
description: "If set, use Bootsnap to speed up repeated `brew` calls. "\
"A no-op when using Homebrew's vendored, relocatable Ruby on macOS (as it doesn't work).",
description: "If set, use Bootsnap to speed up repeated `brew` calls. " \
"A no-op in various configurations where it doesn't work. " \
"Enabled by default if HOMEBREW_DEVELOPER is set or a developer command has been run.",
boolean: true,
},
HOMEBREW_BOTTLE_DOMAIN: {

View File

@ -1721,7 +1721,7 @@ example, run `export HOMEBREW_NO_INSECURE_REDIRECT=1` rather than just
<br>Use this username when accessing the Bintray API (where bottles are stored).
- `HOMEBREW_BOOTSNAP`
<br>If set, use Bootsnap to speed up repeated `brew` calls. A no-op when using Homebrew's vendored, relocatable Ruby on macOS (as it doesn't work).
<br>If set, use Bootsnap to speed up repeated `brew` calls. A no-op in various configurations where it doesn't work. Enabled by default if HOMEBREW_DEVELOPER is set or a developer command has been run.
- `HOMEBREW_BOTTLE_DOMAIN`
<br>Use this URL as the download mirror for bottles. For example, `HOMEBREW_BOTTLE_DOMAIN=http://localhost:8080` will cause all bottles to download from the prefix `http://localhost:8080/`.

View File

@ -2398,7 +2398,7 @@ Use this username when accessing the Bintray API (where bottles are stored)\.
\fBHOMEBREW_BOOTSNAP\fR
.
.br
If set, use Bootsnap to speed up repeated \fBbrew\fR calls\. A no\-op when using Homebrew\'s vendored, relocatable Ruby on macOS (as it doesn\'t work)\.
If set, use Bootsnap to speed up repeated \fBbrew\fR calls\. A no\-op in various configurations where it doesn\'t work\. Enabled by default if HOMEBREW_DEVELOPER is set or a developer command has been run\.
.
.TP
\fBHOMEBREW_BOTTLE_DOMAIN\fR