Skip to content

Commit

Permalink
Expand env-shebang to setup and pristine
Browse files Browse the repository at this point in the history
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 jruby#4404
  • Loading branch information
headius committed Mar 1, 2021
1 parent 8eb8cc4 commit ea6ddc7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/ruby/stdlib/rubygems/defaults/jruby.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit ea6ddc7

Please sign in to comment.