File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed
compiler/test/dotty/tools/dotc Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,8 @@ class BootstrappedOnlyCompilationTests {
3232 ).checkCompile()
3333 }
3434
35- @ Test def posWithCompilerCC : Unit =
35+ // @Test
36+ def posWithCompilerCC : Unit =
3637 implicit val testGroup : TestGroup = TestGroup (" compilePosWithCompilerCC" )
3738 aggregateTests(
3839 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])
169169
170170object Releases :
171171 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
175179
176180 def fromRange (range : ReleasesRange ): Vector [Release ] = range.filter(allReleases)
177181
You can’t perform that action at this time.
0 commit comments