Skip to content

Commit 2506d21

Browse files
Merge pull request actions#332 from fmeriaux/sbt-exclude-some-files
sbt-cache: don't cache some files.
2 parents 6280813 + 187f735 commit 2506d21

File tree

3 files changed

+15
-3
lines changed

3 files changed

+15
-3
lines changed

dist/cleanup/index.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65448,7 +65448,11 @@ 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+
// Some files should not be cached to avoid resolution problems.
65453+
// In particular the resolution of snapshots (ideological gap between maven/ivy).
65454+
'!' + path_1.join(os_1.default.homedir(), '.sbt', '*.lock'),
65455+
'!' + path_1.join(os_1.default.homedir(), '**', 'ivydata-*.properties')
6545265456
],
6545365457
pattern: ['**/*.sbt', '**/project/build.properties', '**/project/**.{scala,sbt}']
6545465458
}

dist/setup/index.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100653,7 +100653,11 @@ 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+
// Some files should not be cached to avoid resolution problems.
100658+
// In particular the resolution of snapshots (ideological gap between maven/ivy).
100659+
'!' + path_1.join(os_1.default.homedir(), '.sbt', '*.lock'),
100660+
'!' + path_1.join(os_1.default.homedir(), '**', 'ivydata-*.properties')
100657100661
],
100658100662
pattern: ['**/*.sbt', '**/project/build.properties', '**/project/**.{scala,sbt}']
100659100663
}

src/cache.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,11 @@ const supportedPackageManager: PackageManager[] = [
3838
path: [
3939
join(os.homedir(), '.ivy2', 'cache'),
4040
join(os.homedir(), '.sbt'),
41-
getCoursierCachePath()
41+
getCoursierCachePath(),
42+
// Some files should not be cached to avoid resolution problems.
43+
// In particular the resolution of snapshots (ideological gap between maven/ivy).
44+
'!' + join(os.homedir(), '.sbt', '*.lock'),
45+
'!' + join(os.homedir(), '**', 'ivydata-*.properties')
4246
],
4347
pattern: ['**/*.sbt', '**/project/build.properties', '**/project/**.{scala,sbt}']
4448
}

0 commit comments

Comments
 (0)