From 1b4993c9ce9c1ba7966819298336c56f6f3b8861 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 28 Dec 2020 09:45:06 +0000 Subject: [PATCH] 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. --- Library/Homebrew/cmd/install.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Library/Homebrew/cmd/install.rb b/Library/Homebrew/cmd/install.rb index ea4b1cacdd..af6772518d 100644 --- a/Library/Homebrew/cmd/install.rb +++ b/Library/Homebrew/cmd/install.rb @@ -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