mirror of
https://github.com/actions/setup-java.git
synced 2025-04-22 02:46:46 +00:00
fix cache paths
This commit is contained in:
parent
ff4b9e75fd
commit
cc7d3b7b50
3 changed files with 6 additions and 6 deletions
4
dist/setup/index.js
vendored
4
dist/setup/index.js
vendored
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue