File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -65449,8 +65449,8 @@ const supportedPackageManager = [
65449
65449
path_1.join(os_1.default.homedir(), '.ivy2', 'cache'),
65450
65450
path_1.join(os_1.default.homedir(), '.sbt'),
65451
65451
getCoursierCachePath(),
65452
- //TODO: comment the reason of exclusions
65453
65452
'!' + path_1.join(os_1.default.homedir(), '.sbt', '*.lock'),
65453
+ // Avoid SNAPSHOT resolution problems by forcing the deletion of these files (due to ideological gaps in maven/ivy).
65454
65454
'!' + path_1.join(os_1.default.homedir(), '**', 'ivydata-*.properties')
65455
65455
],
65456
65456
pattern: ['**/*.sbt', '**/project/build.properties', '**/project/**.{scala,sbt}']
Original file line number Diff line number Diff line change @@ -100654,8 +100654,8 @@ const supportedPackageManager = [
100654
100654
path_1.join(os_1.default.homedir(), '.ivy2', 'cache'),
100655
100655
path_1.join(os_1.default.homedir(), '.sbt'),
100656
100656
getCoursierCachePath(),
100657
- //TODO: comment the reason of exclusions
100658
100657
'!' + path_1.join(os_1.default.homedir(), '.sbt', '*.lock'),
100658
+ // Avoid SNAPSHOT resolution problems by forcing the deletion of these files (due to ideological gaps in maven/ivy).
100659
100659
'!' + path_1.join(os_1.default.homedir(), '**', 'ivydata-*.properties')
100660
100660
],
100661
100661
pattern: ['**/*.sbt', '**/project/build.properties', '**/project/**.{scala,sbt}']
Original file line number Diff line number Diff line change @@ -39,7 +39,8 @@ const supportedPackageManager: PackageManager[] = [
39
39
join ( os . homedir ( ) , '.ivy2' , 'cache' ) ,
40
40
join ( os . homedir ( ) , '.sbt' ) ,
41
41
getCoursierCachePath ( ) ,
42
- //TODO: comment the reason of exclusions
42
+ // Some files should not be cached to avoid resolution problems.
43
+ // In particular the resolution of snapshots (ideological gap between maven/ivy).
43
44
'!' + join ( os . homedir ( ) , '.sbt' , '*.lock' ) ,
44
45
'!' + join ( os . homedir ( ) , '**' , 'ivydata-*.properties' )
45
46
] ,
@@ -84,8 +85,7 @@ export async function restore(id: string) {
84
85
core . saveState ( STATE_CACHE_PRIMARY_KEY , primaryKey ) ;
85
86
if ( primaryKey . endsWith ( '-' ) ) {
86
87
throw new Error (
87
- `No file in ${ process . cwd ( ) } matched to [${
88
- packageManager . pattern
88
+ `No file in ${ process . cwd ( ) } matched to [${ packageManager . pattern
89
89
} ], make sure you have checked out the target repository`
90
90
) ;
91
91
}
You can’t perform that action at this time.
0 commit comments