Skip to content

Commit 4451173

Browse files
committed
Remove workaround for old truffleruby version from 2021
1 parent 805f878 commit 4451173

File tree

2 files changed

+0
-24
lines changed

2 files changed

+0
-24
lines changed

bundler.js

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -48,16 +48,6 @@ function readBundledWithFromGemfileLock(lockFile) {
4848
return null
4949
}
5050

51-
async function afterLockFile(lockFile, platform, engine, rubyVersion) {
52-
if (engine.startsWith('truffleruby') && common.floatVersion(rubyVersion) < 21.1 && platform.startsWith('ubuntu-')) {
53-
const contents = fs.readFileSync(lockFile, 'utf8')
54-
if (contents.includes('nokogiri')) {
55-
await common.measure('Installing libxml2-dev libxslt-dev, required to install nokogiri on TruffleRuby < 21.1', async () =>
56-
exec.exec('sudo', ['apt-get', '-yqq', 'install', 'libxml2-dev', 'libxslt-dev'], { silent: true }))
57-
}
58-
}
59-
}
60-
6151
export async function installBundler(bundlerVersionInput, rubygemsInputSet, lockFile, platform, rubyPrefix, engine, rubyVersion) {
6252
let bundlerVersion = bundlerVersionInput
6353

@@ -175,8 +165,6 @@ export async function bundleInstall(gemfile, lockFile, platform, engine, rubyVer
175165
await exec.exec('bundle', ['lock'], envOptions)
176166
}
177167

178-
await afterLockFile(lockFile, platform, engine, rubyVersion)
179-
180168
// cache key
181169
const paths = [cachePath]
182170
const baseKey = await computeBaseKey(engine, rubyVersion, lockFile, cacheVersion)

dist/index.js

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

0 commit comments

Comments
 (0)