File tree 2 files changed +9
-4
lines changed
compiler/test/dotty/tools/dotc
2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,8 @@ class BootstrappedOnlyCompilationTests {
32
32
).checkCompile()
33
33
}
34
34
35
- @ Test def posWithCompilerCC : Unit =
35
+ // @Test
36
+ def posWithCompilerCC : Unit =
36
37
implicit val testGroup : TestGroup = TestGroup (" compilePosWithCompilerCC" )
37
38
aggregateTests(
38
39
compileDir(" tests/pos-with-compiler-cc/dotc" , withCompilerOptions.and(" -language:experimental.captureChecking" ))
Original file line number Diff line number Diff line change @@ -169,9 +169,13 @@ class Releases(val releases: Vector[Release])
169
169
170
170
object Releases :
171
171
lazy val allReleases : Vector [Release ] =
172
- val re = raw """ (?<=title=")(.+-bin-\d{8}-\w{7}-NIGHTLY)(?=/") """ .r
173
- val html = Source .fromURL(" https://repo1.maven.org/maven2/org/scala-lang/scala3-compiler_3/" )
174
- re.findAllIn(html.mkString).map(Release .apply).toVector
172
+ val re = raw " <version>(.+-bin-\d{8}-\w{7}-NIGHTLY)</version> " .r
173
+ val xml = io.Source .fromURL(
174
+ " https://repo1.maven.org/maven2/org/scala-lang/scala3-compiler_3/maven-metadata.xml"
175
+ )
176
+ re.findAllMatchIn(xml.mkString)
177
+ .flatMap{ m => Option (m.group(1 )).map(Release .apply) }
178
+ .toVector
175
179
176
180
def fromRange (range : ReleasesRange ): Vector [Release ] = range.filter(allReleases)
177
181
You can’t perform that action at this time.
0 commit comments