fix cache paths

This commit is contained in:
Florian Meriaux 2022-04-13 14:19:16 +02:00
parent ff4b9e75fd
commit cc7d3b7b50
No known key found for this signature in database
GPG key ID: A3F999CB41DB6BE2
3 changed files with 6 additions and 6 deletions

4
dist/setup/index.js vendored
View file

@ -18636,10 +18636,10 @@ const supportedPackageManager = [
];
function getCoursierCachePath() {
if (os_1.default.type() === 'Linux')
return path_1.join(os_1.default.homedir(), 'AppData', 'Local', 'Coursier', 'Cache');
return path_1.join(os_1.default.homedir(), '.cache', 'coursier');
if (os_1.default.type() === 'Darwin')
return path_1.join(os_1.default.homedir(), 'Library', 'Caches', 'Coursier');
return path_1.join(os_1.default.homedir(), '.cache', 'coursier');
return path_1.join(os_1.default.homedir(), 'AppData', 'Local', 'Coursier', 'Cache');
}
function findPackageManager(id) {
const packageManager = supportedPackageManager.find(packageManager => packageManager.id === id);