From fc0d7ac21d267c29a27e00ba7b770d91c96c0dd4 Mon Sep 17 00:00:00 2001 From: Anatoli Babenia Date: Sun, 2 Jun 2024 17:01:25 +0300 Subject: [PATCH] dev-cmd/edit: Actionable message about no API install --- Library/Homebrew/dev-cmd/edit.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Library/Homebrew/dev-cmd/edit.rb b/Library/Homebrew/dev-cmd/edit.rb index 9164c553d7..4c6a880dc0 100644 --- a/Library/Homebrew/dev-cmd/edit.rb +++ b/Library/Homebrew/dev-cmd/edit.rb @@ -70,9 +70,8 @@ module Homebrew !Homebrew::EnvConfig.no_env_hints? && (core_formula_path?(path) || core_cask_path?(path) || core_formula_tap?(path) || core_cask_tap?(path)) end - opoo <<~EOS - `brew install` ignores locally edited casks and formulae if - HOMEBREW_NO_INSTALL_FROM_API is not set. + ohai "To test your local edits, run:", <<~EOS + HOMEBREW_NO_INSTALL_FROM_API=1 brew install --build-from-source --verbose --debug #{args.named.join(" ")} EOS end end