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

@ -65449,8 +65449,8 @@ const supportedPackageManager = [
path_1.join(os_1.default.homedir(), '.ivy2', 'cache'), path_1.join(os_1.default.homedir(), '.ivy2', 'cache'),
path_1.join(os_1.default.homedir(), '.sbt'), path_1.join(os_1.default.homedir(), '.sbt'),
getCoursierCachePath(), getCoursierCachePath(),
//TODO: comment the reason of exclusions
'!' + path_1.join(os_1.default.homedir(), '.sbt', '*.lock'), '!' + 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') '!' + path_1.join(os_1.default.homedir(), '**', 'ivydata-*.properties')
], ],
pattern: ['**/*.sbt', '**/project/build.properties', '**/project/**.{scala,sbt}'] pattern: ['**/*.sbt', '**/project/build.properties', '**/project/**.{scala,sbt}']

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(), '.ivy2', 'cache'),
path_1.join(os_1.default.homedir(), '.sbt'), path_1.join(os_1.default.homedir(), '.sbt'),
getCoursierCachePath(), getCoursierCachePath(),
//TODO: comment the reason of exclusions
'!' + path_1.join(os_1.default.homedir(), '.sbt', '*.lock'), '!' + 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') '!' + path_1.join(os_1.default.homedir(), '**', 'ivydata-*.properties')
], ],
pattern: ['**/*.sbt', '**/project/build.properties', '**/project/**.{scala,sbt}'] pattern: ['**/*.sbt', '**/project/build.properties', '**/project/**.{scala,sbt}']

@ -39,7 +39,8 @@ const supportedPackageManager: PackageManager[] = [
join(os.homedir(), '.ivy2', 'cache'), join(os.homedir(), '.ivy2', 'cache'),
join(os.homedir(), '.sbt'), join(os.homedir(), '.sbt'),
getCoursierCachePath(), 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(), '.sbt', '*.lock'),
'!' + join(os.homedir(), '**', 'ivydata-*.properties') '!' + join(os.homedir(), '**', 'ivydata-*.properties')
], ],
@ -84,8 +85,7 @@ export async function restore(id: string) {
core.saveState(STATE_CACHE_PRIMARY_KEY, primaryKey); core.saveState(STATE_CACHE_PRIMARY_KEY, primaryKey);
if (primaryKey.endsWith('-')) { if (primaryKey.endsWith('-')) {
throw new Error( throw new Error(
`No file in ${process.cwd()} matched to [${ `No file in ${process.cwd()} matched to [${packageManager.pattern
packageManager.pattern
}], make sure you have checked out the target repository` }], make sure you have checked out the target repository`
); );
} }