Skip to content

Commit

Permalink
sbt-cache: don't cache some files.
Browse files Browse the repository at this point in the history
  • Loading branch information
Florian Meriaux committed May 25, 2022
1 parent 05b9e39 commit 3e3d8c4
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
5 changes: 4 additions & 1 deletion dist/cleanup/index.js
Expand Up @@ -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}']
}
Expand Down
5 changes: 4 additions & 1 deletion dist/setup/index.js
Expand Up @@ -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}']
}
Expand Down
5 changes: 4 additions & 1 deletion src/cache.ts
Expand Up @@ -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}']
}
Expand Down

0 comments on commit 3e3d8c4

Please sign in to comment.