Skip to content

Commit dddacd7

Browse files
committed
Document the logic for whether to install Bundler
1 parent 5ee1019 commit dddacd7

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

bundler.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@ export async function installBundler(bundlerVersionInput, lockFile, platform, ru
8181
}
8282

8383
if (common.isHeadVersion(rubyVersion) && common.isBundler2Default(engine, rubyVersion) && bundlerVersion.startsWith('2')) {
84+
// Avoid installing a newer Bundler version for head versions as it might not work.
85+
// For releases, even if they ship with Bundler 2 we install the latest Bundler.
8486
console.log(`Using Bundler 2 shipped with ${engine}-${rubyVersion}`)
8587
} else if (engine === 'truffleruby' && !common.isHeadVersion(rubyVersion) && bundlerVersion.startsWith('1')) {
8688
console.log(`Using Bundler 1 shipped with ${engine}`)

dist/index.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)