add documentation notes

This commit is contained in:
Florian Meriaux 2022-06-15 08:10:31 +02:00
parent 3e3d8c490f
commit fa01820a3b
No known key found for this signature in database
GPG Key ID: 1628114C148A0C08
3 changed files with 5 additions and 5 deletions

View File

@ -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
View File

@ -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}']

View File

@ -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`
);
}