Skip to content
Snippets Groups Projects
Commit ec27dee0 authored by Rhys Arkins's avatar Rhys Arkins
Browse files

fix: check for installed renovate bundled yarn

parent c980fa1e
No related branches found
No related tags found
No related merge requests found
...@@ -27,11 +27,19 @@ async function generateLockFile(cwd, env, config = {}) { ...@@ -27,11 +27,19 @@ async function generateLockFile(cwd, env, config = {}) {
cmd = `node ${installedPath}`; cmd = `node ${installedPath}`;
// istanbul ignore if // istanbul ignore if
if (yarnIntegrity) { if (yarnIntegrity) {
logger.info('Using yarn@1.10 for install'); try {
cmd = cmd.replace( const renovatePath = await getInstalledPath('renovate', {
'node_modules/yarn/bin/yarn.js', local: true,
'bin/yarn-1.10.1.js' });
); logger.info('Using nested bundled yarn@1.10 for install');
cmd = upath.join(renovatePath, 'bin/yarn-1.10.1.js');
} catch (err) {
logger.info('Using bundled yarn@1.10 for install');
cmd = cmd.replace(
'node_modules/yarn/bin/yarn.js',
'bin/yarn-1.10.1.js'
);
}
} }
} catch (localerr) { } catch (localerr) {
logger.debug('No locally installed yarn found'); logger.debug('No locally installed yarn found');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment