diff options
| -rw-r--r-- | lib/bundler/cli.rb | 6 | ||||
| -rw-r--r-- | lib/bundler/cli/install.rb | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/lib/bundler/cli.rb b/lib/bundler/cli.rb index 87077f3c88..c667020f0a 100644 --- a/lib/bundler/cli.rb +++ b/lib/bundler/cli.rb @@ -239,6 +239,12 @@ module Bundler remembered_flag_deprecation("deployment", negative: true) + if ARGV.include?("--binstubs") + message = "The --binstubs option will be removed in favor of `bundle binstubs --all`" + removed_message = "The --binstubs option have been removed in favor of `bundle binstubs --all`" + SharedHelpers.major_deprecation(2, message, removed_message: removed_message) + end + require_relative "cli/install" Bundler.settings.temporary(no_install: false) do Install.new(options.dup).run diff --git a/lib/bundler/cli/install.rb b/lib/bundler/cli/install.rb index c4063f808a..57c28379e5 100644 --- a/lib/bundler/cli/install.rb +++ b/lib/bundler/cli/install.rb @@ -38,12 +38,6 @@ module Bundler Bundler::Fetcher.disable_endpoint = options["full-index"] - if options["binstubs"] - Bundler::SharedHelpers.major_deprecation 2, - "The --binstubs option will be removed in favor of `bundle binstubs --all`", - removed_message: "The --binstubs option have been removed in favor of `bundle binstubs --all`" - end - Plugin.gemfile_install(Bundler.default_gemfile) if Bundler.feature_flag.plugins? # For install we want to enable strict validation |
