@@ -21,27 +21,31 @@ private static String corpusVersion(String source) throws IOException {
21
21
throw new RuntimeException ("Please provide -DscalaRef=..." );
22
22
23
23
// TODO: git fetch --tags
24
+ try {
24
25
25
- switch (source ) {
26
- case "vector" :
27
- if (GitWalker .isAncestor ("v2.11.0" , scalaRef , repo ))
28
- return "fb04376" ; // compiles with 2.11.0, but not with 2.10.6
29
- break ;
26
+ switch (source ) {
27
+ case "vector" :
28
+ if (GitWalker .isAncestor ("v2.11.0" , scalaRef , repo ))
29
+ return "fb04376" ; // compiles with 2.11.0, but not with 2.10.6
30
+ break ;
30
31
31
- case "scalap" :
32
- if (GitWalker .isAncestor ("v2.10.1" , scalaRef , repo ))
33
- return "a8c43dc" ; // compiles with 2.10.1, but not with 2.9.3
34
- break ;
32
+ case "scalap" :
33
+ if (GitWalker .isAncestor ("v2.10.1" , scalaRef , repo ))
34
+ return "a8c43dc" ; // compiles with 2.10.1, but not with 2.9.3
35
+ break ;
35
36
36
- case "better-files" :
37
- if (GitWalker .isAncestor ("v2.10.2" , scalaRef , repo ))
38
- return "a45f905" ; // compiles with 2.10.2, but not with 2.10.1
39
- break ;
37
+ case "better-files" :
38
+ if (GitWalker .isAncestor ("v2.10.2" , scalaRef , repo ))
39
+ return "a45f905" ; // compiles with 2.10.2, but not with 2.10.1
40
+ break ;
40
41
41
- case "scala" :
42
- if (GitWalker .isAncestor ("v2.11.5" , scalaRef , repo ))
43
- return "21d12e9" ;
44
- break ;
42
+ case "scala" :
43
+ if (GitWalker .isAncestor ("v2.11.5" , scalaRef , repo ))
44
+ return "21d12e9" ;
45
+ break ;
46
+ }
47
+ } catch (IllegalArgumentException iae ){
48
+ // ignore, we might be on a dotty commit, just pick latest
45
49
}
46
50
47
51
return null ;
0 commit comments