Merge pull request #17408 from abitrolly/warn-after-edit
dev-cmd/edit: Show API install warning after the edit is done
This commit is contained in:
commit
84319eec05
@ -51,17 +51,6 @@ module Homebrew
|
|||||||
expanded_paths.each do |path|
|
expanded_paths.each do |path|
|
||||||
raise_with_message!(path, args.cask?) unless path.exist?
|
raise_with_message!(path, args.cask?) unless path.exist?
|
||||||
end
|
end
|
||||||
|
|
||||||
if expanded_paths.any? do |path|
|
|
||||||
!Homebrew::EnvConfig.no_install_from_api? &&
|
|
||||||
!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.
|
|
||||||
EOS
|
|
||||||
end
|
|
||||||
expanded_paths
|
expanded_paths
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -71,6 +60,17 @@ module Homebrew
|
|||||||
end
|
end
|
||||||
|
|
||||||
exec_editor(*paths)
|
exec_editor(*paths)
|
||||||
|
|
||||||
|
if paths.any? do |path|
|
||||||
|
!Homebrew::EnvConfig.no_install_from_api? &&
|
||||||
|
!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.
|
||||||
|
EOS
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user