@@ -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-
6151export 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 )
0 commit comments