From 472790540115ce5bd69d399a020189a8c87d641f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= Date: Wed, 16 Jul 2025 22:44:41 +0200 Subject: [PATCH] Try also removing the other case where `--force` is used --- bundler.js | 4 +--- dist/index.js | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/bundler.js b/bundler.js index e766151..711871b 100644 --- a/bundler.js +++ b/bundler.js @@ -137,13 +137,11 @@ export async function installBundler(bundlerVersionInput, rubygemsInputSet, lock } const gem = path.join(rubyPrefix, 'bin', 'gem') - // and for https://github.com/oracle/truffleruby/issues/2780 - const force = engine === 'truffleruby' ? ['--force'] : [] const versionParts = [...bundlerVersion.matchAll(/\d+/g)].length const bundlerVersionConstraint = versionParts >= 3 ? bundlerVersion : `~> ${bundlerVersion}.0` - await exec.exec(gem, ['install', 'bundler', ...force, '-v', bundlerVersionConstraint]) + await exec.exec(gem, ['install', 'bundler', '-v', bundlerVersionConstraint]) return bundlerVersion } diff --git a/dist/index.js b/dist/index.js index 71529be..b03752c 100644 --- a/dist/index.js +++ b/dist/index.js @@ -151,13 +151,11 @@ async function installBundler(bundlerVersionInput, rubygemsInputSet, lockFile, p } const gem = path.join(rubyPrefix, 'bin', 'gem') - // and for https://github.com/oracle/truffleruby/issues/2780 - const force = engine === 'truffleruby' ? ['--force'] : [] const versionParts = [...bundlerVersion.matchAll(/\d+/g)].length const bundlerVersionConstraint = versionParts >= 3 ? bundlerVersion : `~> ${bundlerVersion}.0` - await exec.exec(gem, ['install', 'bundler', ...force, '-v', bundlerVersionConstraint]) + await exec.exec(gem, ['install', 'bundler', '-v', bundlerVersionConstraint]) return bundlerVersion }