diff options
| author | David RodrÃguez <2887858+deivid-rodriguez@users.noreply.github.com> | 2025-09-09 19:20:00 +0200 |
|---|---|---|
| committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2025-09-17 15:42:23 +0900 |
| commit | 7c5613a63865553c4191e82249c157e8a16eca75 (patch) | |
| tree | aa8998d8d9d9c92893f69e1d119151b4ee866bc2 | |
| parent | 19a363680f2e009df275c3f973a35a6a703033db (diff) | |
[rubygems/rubygems] Move `bundle install --binstubs` deprecation to cli.rb
For consistency with the other deprecations.
https://github.com/rubygems/rubygems/commit/28e300cee1
| -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 |
