diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2021-08-03 12:18:11 +0200 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2021-08-31 19:06:14 +0900 |
commit | 10dcd0eb5b848ffb8e5f0e830f5f8ad014a49e05 (patch) | |
tree | 73a0130850ff2764b5f65aa19bfe03555cac1c7f /lib/bundler/cli.rb | |
parent | 8c1b31f7b33304f70948f81c22c14e26e1b9f61f (diff) |
[rubygems/rubygems] Deprecate `bundle exec --no-keep-file-descriptors`
https://github.com/rubygems/rubygems/commit/591466d512
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/4789
Diffstat (limited to 'lib/bundler/cli.rb')
-rw-r--r-- | lib/bundler/cli.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/bundler/cli.rb b/lib/bundler/cli.rb index 8d9f3a5b7d..3ff5f68a50 100644 --- a/lib/bundler/cli.rb +++ b/lib/bundler/cli.rb @@ -477,6 +477,10 @@ module Bundler into the system wide RubyGems repository. D def exec(*args) + if ARGV.include?("--no-keep-file-descriptors") + SharedHelpers.major_deprecation(2, "The `--no-keep-file-descriptors` has been deprecated. `bundle exec` no longer mess with your file descriptors. Close them in the exec'd script if you need to") + end + require_relative "cli/exec" Exec.new(options, args).run end |