mirror of
https://github.com/actions/setup-java.git
synced 2024-08-16 10:19:51 +02:00
add documentation notes
This commit is contained in:
parent
3e3d8c490f
commit
fa01820a3b
3 changed files with 5 additions and 5 deletions
2
dist/cleanup/index.js
vendored
2
dist/cleanup/index.js
vendored
|
@ -65449,8 +65449,8 @@ const supportedPackageManager = [
|
|||
path_1.join(os_1.default.homedir(), '.ivy2', 'cache'),
|
||||
path_1.join(os_1.default.homedir(), '.sbt'),
|
||||
getCoursierCachePath(),
|
||||
//TODO: comment the reason of exclusions
|
||||
'!' + path_1.join(os_1.default.homedir(), '.sbt', '*.lock'),
|
||||
// Avoid SNAPSHOT resolution problems by forcing the deletion of these files (due to ideological gaps in maven/ivy).
|
||||
'!' + path_1.join(os_1.default.homedir(), '**', 'ivydata-*.properties')
|
||||
],
|
||||
pattern: ['**/*.sbt', '**/project/build.properties', '**/project/**.{scala,sbt}']
|
||||
|
|
2
dist/setup/index.js
vendored
2
dist/setup/index.js
vendored
|
@ -100654,8 +100654,8 @@ const supportedPackageManager = [
|
|||
path_1.join(os_1.default.homedir(), '.ivy2', 'cache'),
|
||||
path_1.join(os_1.default.homedir(), '.sbt'),
|
||||
getCoursierCachePath(),
|
||||
//TODO: comment the reason of exclusions
|
||||
'!' + path_1.join(os_1.default.homedir(), '.sbt', '*.lock'),
|
||||
// Avoid SNAPSHOT resolution problems by forcing the deletion of these files (due to ideological gaps in maven/ivy).
|
||||
'!' + path_1.join(os_1.default.homedir(), '**', 'ivydata-*.properties')
|
||||
],
|
||||
pattern: ['**/*.sbt', '**/project/build.properties', '**/project/**.{scala,sbt}']
|
||||
|
|
|
@ -39,7 +39,8 @@ const supportedPackageManager: PackageManager[] = [
|
|||
join(os.homedir(), '.ivy2', 'cache'),
|
||||
join(os.homedir(), '.sbt'),
|
||||
getCoursierCachePath(),
|
||||
//TODO: comment the reason of exclusions
|
||||
// Some files should not be cached to avoid resolution problems.
|
||||
// In particular the resolution of snapshots (ideological gap between maven/ivy).
|
||||
'!' + join(os.homedir(), '.sbt', '*.lock'),
|
||||
'!' + join(os.homedir(), '**', 'ivydata-*.properties')
|
||||
],
|
||||
|
@ -84,8 +85,7 @@ export async function restore(id: string) {
|
|||
core.saveState(STATE_CACHE_PRIMARY_KEY, primaryKey);
|
||||
if (primaryKey.endsWith('-')) {
|
||||
throw new Error(
|
||||
`No file in ${process.cwd()} matched to [${
|
||||
packageManager.pattern
|
||||
`No file in ${process.cwd()} matched to [${packageManager.pattern
|
||||
}], make sure you have checked out the target repository`
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue