Skip to content

Commit 3e3d8c4

Browse files
author
Florian Meriaux
committed
sbt-cache: don't cache some files.
1 parent 05b9e39 commit 3e3d8c4

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

dist/cleanup/index.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65448,7 +65448,10 @@ const supportedPackageManager = [
6544865448
path: [
6544965449
path_1.join(os_1.default.homedir(), '.ivy2', 'cache'),
6545065450
path_1.join(os_1.default.homedir(), '.sbt'),
65451-
getCoursierCachePath()
65451+
getCoursierCachePath(),
65452+
//TODO: comment the reason of exclusions
65453+
'!' + path_1.join(os_1.default.homedir(), '.sbt', '*.lock'),
65454+
'!' + path_1.join(os_1.default.homedir(), '**', 'ivydata-*.properties')
6545265455
],
6545365456
pattern: ['**/*.sbt', '**/project/build.properties', '**/project/**.{scala,sbt}']
6545465457
}

dist/setup/index.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100653,7 +100653,10 @@ const supportedPackageManager = [
100653100653
path: [
100654100654
path_1.join(os_1.default.homedir(), '.ivy2', 'cache'),
100655100655
path_1.join(os_1.default.homedir(), '.sbt'),
100656-
getCoursierCachePath()
100656+
getCoursierCachePath(),
100657+
//TODO: comment the reason of exclusions
100658+
'!' + path_1.join(os_1.default.homedir(), '.sbt', '*.lock'),
100659+
'!' + path_1.join(os_1.default.homedir(), '**', 'ivydata-*.properties')
100657100660
],
100658100661
pattern: ['**/*.sbt', '**/project/build.properties', '**/project/**.{scala,sbt}']
100659100662
}

src/cache.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,10 @@ const supportedPackageManager: PackageManager[] = [
3838
path: [
3939
join(os.homedir(), '.ivy2', 'cache'),
4040
join(os.homedir(), '.sbt'),
41-
getCoursierCachePath()
41+
getCoursierCachePath(),
42+
//TODO: comment the reason of exclusions
43+
'!' + join(os.homedir(), '.sbt', '*.lock'),
44+
'!' + join(os.homedir(), '**', 'ivydata-*.properties')
4245
],
4346
pattern: ['**/*.sbt', '**/project/build.properties', '**/project/**.{scala,sbt}']
4447
}

0 commit comments

Comments
 (0)