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

fix: use manager in changelog cache lookup key

parent 3b17495e
No related branches found
No related tags found
No related merge requests found
......@@ -2,6 +2,6 @@ const fs = require('fs-extra');
const os = require('os');
(async () => {
await fs.remove(os.tmpdir() + '/renovate-cache-changelog-v2');
await fs.remove(os.tmpdir() + '/renovate-cache-changelog-v3');
await fs.remove(os.tmpdir() + '/renovate-npm-cache');
})();
......@@ -8,10 +8,10 @@ module.exports = {
rmAllCache,
};
function getCache({ depName, fromVersion, toVersion }) {
function getCache({ manager, depName, fromVersion, toVersion }) {
const tmpdir = process.env.RENOVATE_TMPDIR || os.tmpdir();
const cachePath = tmpdir + '/renovate-cache-changelog-v2';
const cacheKey = `${depName}-${fromVersion}-${toVersion}`;
const cachePath = tmpdir + '/renovate-cache-changelog-v3';
const cacheKey = `${manager}-${depName}-${fromVersion}-${toVersion}`;
return [cachePath, cacheKey];
}
......
......@@ -114,6 +114,7 @@ async function ensurePr(prConfig) {
processedUpgrades.push(upgradeKey);
const logJSON = await changelogHelper.getChangeLogJSON({
manager: upgrade.manager,
versionScheme: upgrade.versionScheme,
depType: upgrade.depType,
depName: upgrade.depName,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment