Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix snapshot check #295

Merged
merged 1 commit into from
Aug 7, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions project/PekkoDependency.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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))
Expand Down
Loading