@@ -48,16 +48,6 @@ function readBundledWithFromGemfileLock(lockFile) {
48
48
return null
49
49
}
50
50
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
-
61
51
export async function installBundler ( bundlerVersionInput , rubygemsInputSet , lockFile , platform , rubyPrefix , engine , rubyVersion ) {
62
52
let bundlerVersion = bundlerVersionInput
63
53
@@ -175,8 +165,6 @@ export async function bundleInstall(gemfile, lockFile, platform, engine, rubyVer
175
165
await exec . exec ( 'bundle' , [ 'lock' ] , envOptions )
176
166
}
177
167
178
- await afterLockFile ( lockFile , platform , engine , rubyVersion )
179
-
180
168
// cache key
181
169
const paths = [ cachePath ]
182
170
const baseKey = await computeBaseKey ( engine , rubyVersion , lockFile , cacheVersion )
0 commit comments