dev-cmd/edit: Actionable message about no API install

This commit is contained in:
Anatoli Babenia 2024-06-02 17:01:25 +03:00
parent 458512183b
commit fc0d7ac21d

View File

@ -70,9 +70,8 @@ module Homebrew
!Homebrew::EnvConfig.no_env_hints? && !Homebrew::EnvConfig.no_env_hints? &&
(core_formula_path?(path) || core_cask_path?(path) || core_formula_tap?(path) || core_cask_tap?(path)) (core_formula_path?(path) || core_cask_path?(path) || core_formula_tap?(path) || core_cask_tap?(path))
end end
opoo <<~EOS ohai "To test your local edits, run:", <<~EOS
`brew install` ignores locally edited casks and formulae if HOMEBREW_NO_INSTALL_FROM_API=1 brew install --build-from-source --verbose --debug #{args.named.join(" ")}
HOMEBREW_NO_INSTALL_FROM_API is not set.
EOS EOS
end end
end end