Skip to content
Snippets Groups Projects
Unverified Commit 157b1a3f authored by Rhys Arkins's avatar Rhys Arkins Committed by GitHub
Browse files

fix(pnpm): better log warning for updateLockFile() (#26909)

parent 775b0184
No related branches found
No related tags found
No related merge requests found
...@@ -245,5 +245,11 @@ describe('modules/manager/npm/update/locked-dependency/index', () => { ...@@ -245,5 +245,11 @@ describe('modules/manager/npm/update/locked-dependency/index', () => {
const res = await updateLockedDependency(config); const res = await updateLockedDependency(config);
expect(res.status).toBe('update-failed'); expect(res.status).toBe('update-failed');
}); });
it('fails if pnpm', async () => {
config.lockFile = 'pnpm-lock.yaml';
const res = await updateLockedDependency(config);
expect(res.status).toBe('update-failed');
});
}); });
}); });
...@@ -19,6 +19,14 @@ export async function updateLockedDependency( ...@@ -19,6 +19,14 @@ export async function updateLockedDependency(
if (lockFile.endsWith('yarn.lock')) { if (lockFile.endsWith('yarn.lock')) {
return yarnLock.updateLockedDependency(config); return yarnLock.updateLockedDependency(config);
} }
logger.debug(`Unsupported lock file: ${lockFile}`); if (lockFile.endsWith('pnpm-lock.yaml')) {
logger.debug(
'updateLockedDependency(): pnpm is not supported yet. See https://github.com/renovatebot/renovate/issues/21438',
);
} else {
logger.debug(
`updateLockedDependency(): unsupported lock file: ${lockFile}`,
);
}
return { status: 'update-failed' }; return { status: 'update-failed' };
} }
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