sbt-cache: don't cache some files.

This commit is contained in:
Florian Meriaux 2022-05-25 11:39:10 +02:00
parent 05b9e395e1
commit 3e3d8c490f
No known key found for this signature in database
GPG Key ID: 1628114C148A0C08
3 changed files with 12 additions and 3 deletions

View File

@ -65448,7 +65448,10 @@ const supportedPackageManager = [
path: [
path_1.join(os_1.default.homedir(), '.ivy2', 'cache'),
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(), '**', 'ivydata-*.properties')
],
pattern: ['**/*.sbt', '**/project/build.properties', '**/project/**.{scala,sbt}']
}

5
dist/setup/index.js vendored
View File

@ -100653,7 +100653,10 @@ const supportedPackageManager = [
path: [
path_1.join(os_1.default.homedir(), '.ivy2', 'cache'),
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(), '**', 'ivydata-*.properties')
],
pattern: ['**/*.sbt', '**/project/build.properties', '**/project/**.{scala,sbt}']
}

View File

@ -38,7 +38,10 @@ const supportedPackageManager: PackageManager[] = [
path: [
join(os.homedir(), '.ivy2', 'cache'),
join(os.homedir(), '.sbt'),
getCoursierCachePath()
getCoursierCachePath(),
//TODO: comment the reason of exclusions
'!' + join(os.homedir(), '.sbt', '*.lock'),
'!' + join(os.homedir(), '**', 'ivydata-*.properties')
],
pattern: ['**/*.sbt', '**/project/build.properties', '**/project/**.{scala,sbt}']
}