This is an automated email from the ASF dual-hosted git repository.

fanningpj pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-pekko-http.git


The following commit(s) were added to refs/heads/main by this push:
     new e7da6d387 fix snapshot check (#295)
e7da6d387 is described below

commit e7da6d3876300efbe9a2e6c6105cdc230f55d3b1
Author: PJ Fanning <[email protected]>
AuthorDate: Mon Aug 7 11:38:30 2023 +0100

    fix snapshot check (#295)
---
 project/PekkoDependency.scala | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/project/PekkoDependency.scala b/project/PekkoDependency.scala
index 9c0d0683b..de21b3ab2 100644
--- a/project/PekkoDependency.scala
+++ b/project/PekkoDependency.scala
@@ -99,7 +99,7 @@ object PekkoDependency {
     import scala.concurrent.Await
     import scala.concurrent.duration._
 
-    val snapshotVersionR = 
"""href=".*/((\d+)\.(\d+)\.(\d+)(-(M|RC)(\d+))?\+(\d+)-[0-9a-f]+-SNAPSHOT)/""""".r
+    val snapshotVersionR = 
"""href=".*/((\d+)\.(\d+)\.(\d+)(-(M|RC)(\d+))?\+(\d+)-[0-9a-f]+-SNAPSHOT)/"""".r
 
     // pekko-cluster-sharding-typed_2.13 seems to be the last nightly 
published by `pekko-publish-nightly` so if that's there then it's likely the 
rest also made it
     val body = Await.result(http.run(url(
@@ -109,11 +109,12 @@ object PekkoDependency {
     val allVersions =
       snapshotVersionR.findAllMatchIn(body)
         .map {
-          case Groups(full, ep, maj, min, offset) =>
+          case Groups(full, ep, maj, min, _, _, tagNumber, offset) =>
             (
               ep.toInt,
               maj.toInt,
               min.toInt,
+              Option(tagNumber).map(_.toInt),
               offset.toInt) -> full
         }
         .filter(_._2.startsWith(prefix))


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to