diff --git a/bundler.js b/bundler.js index 8c945d6..e766151 100644 --- a/bundler.js +++ b/bundler.js @@ -137,9 +137,8 @@ export async function installBundler(bundlerVersionInput, rubygemsInputSet, lock } const gem = path.join(rubyPrefix, 'bin', 'gem') - // Workaround for https://github.com/rubygems/rubygems/issues/5245 // and for https://github.com/oracle/truffleruby/issues/2780 - const force = ((platform.startsWith('windows-') && engine === 'ruby' && floatVersion >= 3.1) || (engine === 'truffleruby')) ? ['--force'] : [] + const force = engine === 'truffleruby' ? ['--force'] : [] const versionParts = [...bundlerVersion.matchAll(/\d+/g)].length const bundlerVersionConstraint = versionParts >= 3 ? bundlerVersion : `~> ${bundlerVersion}.0` diff --git a/dist/index.js b/dist/index.js index 9d18b04..71529be 100644 --- a/dist/index.js +++ b/dist/index.js @@ -151,9 +151,8 @@ async function installBundler(bundlerVersionInput, rubygemsInputSet, lockFile, p } const gem = path.join(rubyPrefix, 'bin', 'gem') - // Workaround for https://github.com/rubygems/rubygems/issues/5245 // and for https://github.com/oracle/truffleruby/issues/2780 - const force = ((platform.startsWith('windows-') && engine === 'ruby' && floatVersion >= 3.1) || (engine === 'truffleruby')) ? ['--force'] : [] + const force = engine === 'truffleruby' ? ['--force'] : [] const versionParts = [...bundlerVersion.matchAll(/\d+/g)].length const bundlerVersionConstraint = versionParts >= 3 ? bundlerVersion : `~> ${bundlerVersion}.0`