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 merge requests found
......@@ -27,11 +27,19 @@ async function generateLockFile(cwd, env, config = {}) {
cmd = `node ${installedPath}`;
// istanbul ignore if
if (yarnIntegrity) {
logger.info('Using yarn@1.10 for install');
cmd = cmd.replace(
'node_modules/yarn/bin/yarn.js',
'bin/yarn-1.10.1.js'
);
try {
const renovatePath = await getInstalledPath('renovate', {
local: true,
});
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) {
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