From ea6ddc71f1a0344264f860250d250f790d685270 Mon Sep 17 00:00:00 2001 From: Charles Oliver Nutter Date: Mon, 1 Mar 2021 12:41:26 -0600 Subject: [PATCH] Expand env-shebang to setup and pristine The setup command is used when upgrading RubyGems, and pristine is a clean reinstall. Neither honor the settings for "install" or "update" so we need to force them too. See #4404 --- lib/ruby/stdlib/rubygems/defaults/jruby.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/ruby/stdlib/rubygems/defaults/jruby.rb b/lib/ruby/stdlib/rubygems/defaults/jruby.rb index 2e75d063a11..2ca9572c2b1 100644 --- a/lib/ruby/stdlib/rubygems/defaults/jruby.rb +++ b/lib/ruby/stdlib/rubygems/defaults/jruby.rb @@ -20,7 +20,9 @@ def jarred_path?(p) def self.platform_defaults return { 'install' => '--env-shebang', - 'update' => '--env-shebang' + 'update' => '--env-shebang', + 'setup' => '--env-shebang', + 'pristine' => '--env-shebang' } end