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