cmd/install: add comment to deprecate --env.

We don't allow this on upgrade or reinstall so let's make `StdEnv`
essentially a private, internal API.
This commit is contained in:
Mike McQuaid 2020-12-28 09:45:06 +00:00
parent 20ff74a7a7
commit 1b4993c9ce
No known key found for this signature in database
GPG Key ID: 48A898132FD8EE70

View File

@ -131,6 +131,11 @@ module Homebrew
def install
args = install_args.parse
if args.env.present?
# TODO: enable for Homebrew 2.8.0 and use `replacement: false` for 2.9.0.
# odeprecated "brew install --env", "`env :std` in specific formula files"
end
args.named.each do |name|
next if File.exist?(name)
next if name !~ HOMEBREW_TAP_FORMULA_REGEX && name !~ HOMEBREW_CASK_TAP_CASK_REGEX