diff --git a/bundler.js b/bundler.js index e652755..7528199 100644 --- a/bundler.js +++ b/bundler.js @@ -81,6 +81,8 @@ export async function installBundler(bundlerVersionInput, lockFile, platform, ru } if (common.isHeadVersion(rubyVersion) && common.isBundler2Default(engine, rubyVersion) && bundlerVersion.startsWith('2')) { + // Avoid installing a newer Bundler version for head versions as it might not work. + // For releases, even if they ship with Bundler 2 we install the latest Bundler. console.log(`Using Bundler 2 shipped with ${engine}-${rubyVersion}`) } else if (engine === 'truffleruby' && !common.isHeadVersion(rubyVersion) && bundlerVersion.startsWith('1')) { console.log(`Using Bundler 1 shipped with ${engine}`) diff --git a/dist/index.js b/dist/index.js index f29cf25..668b8b2 100644 --- a/dist/index.js +++ b/dist/index.js @@ -44619,6 +44619,8 @@ async function installBundler(bundlerVersionInput, lockFile, platform, rubyPrefi } if (common.isHeadVersion(rubyVersion) && common.isBundler2Default(engine, rubyVersion) && bundlerVersion.startsWith('2')) { + // Avoid installing a newer Bundler version for head versions as it might not work. + // For releases, even if they ship with Bundler 2 we install the latest Bundler. console.log(`Using Bundler 2 shipped with ${engine}-${rubyVersion}`) } else if (engine === 'truffleruby' && !common.isHeadVersion(rubyVersion) && bundlerVersion.startsWith('1')) { console.log(`Using Bundler 1 shipped with ${engine}`)