File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -63,16 +63,18 @@ def run
63
63
64
64
exec_editor ( *paths )
65
65
66
- if paths . any? do |path |
66
+ is_formula = T . let ( false , T ::Boolean )
67
+ if !Homebrew ::EnvConfig . no_env_hints? && paths . any? do |path |
67
68
next if path == "--project"
68
69
69
- !Homebrew ::EnvConfig . no_install_from_api? &&
70
- !Homebrew ::EnvConfig . no_env_hints? &&
71
- ( core_formula_path? ( path ) || core_cask_path? ( path ) || core_formula_tap? ( path ) || core_cask_tap? ( path ) )
70
+ is_formula = core_formula_path? ( path )
71
+ is_formula || core_cask_path? ( path ) || core_formula_tap? ( path ) || core_cask_tap? ( path )
72
72
end
73
- opoo <<~EOS
74
- `brew install` ignores locally edited casks and formulae if
75
- HOMEBREW_NO_INSTALL_FROM_API is not set.
73
+ from_source = " --build-from-source" if is_formula
74
+ no_api = "HOMEBREW_NO_INSTALL_FROM_API=1 " unless Homebrew ::EnvConfig . no_install_from_api?
75
+ puts <<~EOS
76
+ To test your local edits, run:
77
+ #{ no_api } brew install#{ from_source } --verbose --debug #{ args . named . join ( " " ) }
76
78
EOS
77
79
end
78
80
end
You can’t perform that action at this time.
0 commit comments