Skip to content

Commit 48a7ec3

Browse files
Check what happens without --force
Force actually bypasses dependency constraints so it's actually installing the latest Bundler in version of Ruby incompatible with it.
1 parent 804b16f commit 48a7ec3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

bundler.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ export async function installBundler(bundlerVersionInput, rubygemsInputSet, lock
139139
const gem = path.join(rubyPrefix, 'bin', 'gem')
140140
// Workaround for https://github.com/rubygems/rubygems/issues/5245
141141
// and for https://github.com/oracle/truffleruby/issues/2780
142-
const force = ((platform.startsWith('windows-') && engine === 'ruby' && floatVersion >= 3.1) || (engine === 'truffleruby')) ? ['--force'] : []
142+
const force = engine === 'truffleruby' ? ['--force'] : []
143143

144144
const versionParts = [...bundlerVersion.matchAll(/\d+/g)].length
145145
const bundlerVersionConstraint = versionParts >= 3 ? bundlerVersion : `~> ${bundlerVersion}.0`

dist/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)