Merge pull request #332 from fmeriaux/sbt-exclude-some-files

sbt-cache: don't cache some files.
This commit is contained in:
Marko Zivic 2022-06-15 11:20:20 +02:00 committed by GitHub
commit 2506d21b74
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 15 additions and 3 deletions

View file

@ -65448,7 +65448,11 @@ const supportedPackageManager = [
path: [ path: [
path_1.join(os_1.default.homedir(), '.ivy2', 'cache'), path_1.join(os_1.default.homedir(), '.ivy2', 'cache'),
path_1.join(os_1.default.homedir(), '.sbt'), path_1.join(os_1.default.homedir(), '.sbt'),
getCoursierCachePath() getCoursierCachePath(),
// Some files should not be cached to avoid resolution problems.
// In particular the resolution of snapshots (ideological gap between maven/ivy).
'!' + 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}'] pattern: ['**/*.sbt', '**/project/build.properties', '**/project/**.{scala,sbt}']
} }

6
dist/setup/index.js vendored
View file

@ -100653,7 +100653,11 @@ const supportedPackageManager = [
path: [ path: [
path_1.join(os_1.default.homedir(), '.ivy2', 'cache'), path_1.join(os_1.default.homedir(), '.ivy2', 'cache'),
path_1.join(os_1.default.homedir(), '.sbt'), path_1.join(os_1.default.homedir(), '.sbt'),
getCoursierCachePath() getCoursierCachePath(),
// Some files should not be cached to avoid resolution problems.
// In particular the resolution of snapshots (ideological gap between maven/ivy).
'!' + 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}'] pattern: ['**/*.sbt', '**/project/build.properties', '**/project/**.{scala,sbt}']
} }

View file

@ -38,7 +38,11 @@ const supportedPackageManager: PackageManager[] = [
path: [ path: [
join(os.homedir(), '.ivy2', 'cache'), join(os.homedir(), '.ivy2', 'cache'),
join(os.homedir(), '.sbt'), join(os.homedir(), '.sbt'),
getCoursierCachePath() getCoursierCachePath(),
// Some files should not be cached to avoid resolution problems.
// In particular the resolution of snapshots (ideological gap between maven/ivy).
'!' + join(os.homedir(), '.sbt', '*.lock'),
'!' + join(os.homedir(), '**', 'ivydata-*.properties')
], ],
pattern: ['**/*.sbt', '**/project/build.properties', '**/project/**.{scala,sbt}'] pattern: ['**/*.sbt', '**/project/build.properties', '**/project/**.{scala,sbt}']
} }