Merge pull request #10111 from MikeMcQuaid/install-deprecate-env

cmd/install: add comment to deprecate --env.
This commit is contained in:
Mike McQuaid 2020-12-28 20:49:10 +00:00 committed by GitHub
commit 8594fccb69
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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