Skip to content

Commit

Permalink
Drop "jdk@" and "1." prefixes in per os/architecture indices (#305)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexarchambault authored Oct 23, 2024
1 parent 6508c06 commit 6acab11
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/coursier/jvmindex/Index.scala
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,14 @@ final case class Index(map: Map[Os, Map[Arch, Map[String, Map[String, String]]]]
case (os, osMap) =>
osMap.map {
case (arch, osArchMap) =>
((os, arch), OsArchIndex(osArchMap))
val cleanedUp = osArchMap.map {
case (jdkName, map) =>
jdkName.stripPrefix("jdk@") -> map.map {
case (version, url) =>
(version.stripPrefix("1."), url)
}
}
((os, arch), OsArchIndex(cleanedUp))
}
}

Expand Down

0 comments on commit 6acab11

Please sign in to comment.