brew.sh: HOMEBREW_SIMULATE_MACOS_ON_LINUX implies HOMEBREW_FORCE_HOMEBREW_ON_LINUX

This commit is contained in:
Bo Anderson 2021-03-05 12:18:52 +00:00
parent 4879cf1b48
commit 5660a1bf13
No known key found for this signature in database
GPG Key ID: 3DB94E204E137D65
4 changed files with 15 additions and 1 deletions

View File

@ -323,6 +323,11 @@ case "$*" in
--version|-v) source "$HOMEBREW_LIBRARY/Homebrew/cmd/--version.sh"; homebrew-version; exit 0 ;; --version|-v) source "$HOMEBREW_LIBRARY/Homebrew/cmd/--version.sh"; homebrew-version; exit 0 ;;
esac esac
if [[ -n "$HOMEBREW_SIMULATE_MACOS_ON_LINUX" ]]
then
export HOMEBREW_FORCE_HOMEBREW_ON_LINUX="1"
fi
if [[ -n "$HOMEBREW_MACOS" ]] if [[ -n "$HOMEBREW_MACOS" ]]
then then
HOMEBREW_PRODUCT="Homebrew" HOMEBREW_PRODUCT="Homebrew"

View File

@ -262,7 +262,7 @@ module Homebrew
}, },
HOMEBREW_SIMULATE_MACOS_ON_LINUX: { HOMEBREW_SIMULATE_MACOS_ON_LINUX: {
description: "If set, running Homebrew on Linux will simulate certain macOS code paths. This is useful " \ description: "If set, running Homebrew on Linux will simulate certain macOS code paths. This is useful " \
"when auditing macOS formulae while on Linux.", "when auditing macOS formulae while on Linux. Implies `HOMEBREW_FORCE_HOMEBREW_ON_LINUX`.",
boolean: true, boolean: true,
}, },
HOMEBREW_SKIP_OR_LATER_BOTTLES: { HOMEBREW_SKIP_OR_LATER_BOTTLES: {

View File

@ -1897,6 +1897,9 @@ example, run `export HOMEBREW_NO_INSECURE_REDIRECT=1` rather than just
- `HOMEBREW_PRY` - `HOMEBREW_PRY`
<br>If set, use Pry for the `brew irb` command. <br>If set, use Pry for the `brew irb` command.
- `HOMEBREW_SIMULATE_MACOS_ON_LINUX`
<br>If set, running Homebrew on Linux will simulate certain macOS code paths. This is useful when auditing macOS formulae while on Linux. Implies `HOMEBREW_FORCE_HOMEBREW_ON_LINUX`.
- `HOMEBREW_SKIP_OR_LATER_BOTTLES` - `HOMEBREW_SKIP_OR_LATER_BOTTLES`
<br>If set along with `HOMEBREW_DEVELOPER`, do not use bottles from older versions of macOS. This is useful in development on new macOS versions. <br>If set along with `HOMEBREW_DEVELOPER`, do not use bottles from older versions of macOS. This is useful in development on new macOS versions.

View File

@ -2731,6 +2731,12 @@ If set, \fBbrew install\fR, \fBbrew upgrade\fR and \fBbrew reinstall\fR will nev
If set, use Pry for the \fBbrew irb\fR command\. If set, use Pry for the \fBbrew irb\fR command\.
. .
.TP .TP
\fBHOMEBREW_SIMULATE_MACOS_ON_LINUX\fR
.
.br
If set, running Homebrew on Linux will simulate certain macOS code paths\. This is useful when auditing macOS formulae while on Linux\. Implies \fBHOMEBREW_FORCE_HOMEBREW_ON_LINUX\fR\.
.
.TP
\fBHOMEBREW_SKIP_OR_LATER_BOTTLES\fR \fBHOMEBREW_SKIP_OR_LATER_BOTTLES\fR
. .
.br .br