mirror of
https://github.com/actions/setup-java.git
synced 2025-04-21 18:36:46 +00:00
fix e2e for sbt.
This commit is contained in:
parent
7df480742f
commit
b9d25ecda2
66 changed files with 110 additions and 12 deletions
15
dist/cleanup/index.js
vendored
15
dist/cleanup/index.js
vendored
|
@ -61889,10 +61889,21 @@ const supportedPackageManager = [
|
|||
},
|
||||
{
|
||||
id: 'sbt',
|
||||
path: [path_1.join(os_1.default.homedir(), '.ivy2', 'cache'), path_1.join(os_1.default.homedir(), '.sbt')],
|
||||
pattern: ['**/*.sbt', '**/project/build.properties', '**/project/**.scala']
|
||||
path: [
|
||||
path_1.join(os_1.default.homedir(), '.ivy2', 'cache'),
|
||||
path_1.join(os_1.default.homedir(), '.sbt'),
|
||||
getCoursierCachePath()
|
||||
],
|
||||
pattern: ['*.sbt', 'project/build.properties', 'project/**.{scala,sbt}']
|
||||
}
|
||||
];
|
||||
function getCoursierCachePath() {
|
||||
if (os_1.default.type() === 'Linux')
|
||||
return path_1.join(os_1.default.homedir(), 'AppData', 'Local', 'Coursier', 'Cache');
|
||||
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');
|
||||
}
|
||||
function findPackageManager(id) {
|
||||
const packageManager = supportedPackageManager.find(packageManager => packageManager.id === id);
|
||||
if (packageManager === undefined) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue