mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
fix: HOMEBREW_NO_SORBET_RUNTIME should work even if developer
Today if you are in developer mode then `HOMEBREW_NO_SORBET_RUNTIME` doesn't take effect. But when doing development it's often useful to be able to disable type-checking, so have that env var take effect even in developer mode.
This commit is contained in:
parent
9a3451ee95
commit
1ff3b62d7b
@ -969,13 +969,6 @@ then
|
|||||||
export HOMEBREW_DEVELOPER_COMMAND="1"
|
export HOMEBREW_DEVELOPER_COMMAND="1"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Provide a (temporary, undocumented) way to disable Sorbet globally if needed
|
|
||||||
# to avoid reverting the above.
|
|
||||||
if [[ -n "${HOMEBREW_NO_SORBET_RUNTIME}" ]]
|
|
||||||
then
|
|
||||||
unset HOMEBREW_SORBET_RUNTIME
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ -n "${HOMEBREW_DEVELOPER_COMMAND}" && -z "${HOMEBREW_DEVELOPER}" ]]
|
if [[ -n "${HOMEBREW_DEVELOPER_COMMAND}" && -z "${HOMEBREW_DEVELOPER}" ]]
|
||||||
then
|
then
|
||||||
if [[ -z "${HOMEBREW_DEV_CMD_RUN}" ]]
|
if [[ -z "${HOMEBREW_DEV_CMD_RUN}" ]]
|
||||||
@ -999,6 +992,13 @@ then
|
|||||||
export HOMEBREW_SORBET_RUNTIME="1"
|
export HOMEBREW_SORBET_RUNTIME="1"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Provide a (temporary, undocumented) way to disable Sorbet globally if needed
|
||||||
|
# to avoid reverting the above.
|
||||||
|
if [[ -n "${HOMEBREW_NO_SORBET_RUNTIME}" ]]
|
||||||
|
then
|
||||||
|
unset HOMEBREW_SORBET_RUNTIME
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ -f "${HOMEBREW_LIBRARY}/Homebrew/cmd/${HOMEBREW_COMMAND}.sh" ]]
|
if [[ -f "${HOMEBREW_LIBRARY}/Homebrew/cmd/${HOMEBREW_COMMAND}.sh" ]]
|
||||||
then
|
then
|
||||||
HOMEBREW_BASH_COMMAND="${HOMEBREW_LIBRARY}/Homebrew/cmd/${HOMEBREW_COMMAND}.sh"
|
HOMEBREW_BASH_COMMAND="${HOMEBREW_LIBRARY}/Homebrew/cmd/${HOMEBREW_COMMAND}.sh"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user