fix compilation

This commit is contained in:
Adrien Piquerez 2024-06-04 11:28:52 +02:00
parent 91a2b3d8ad
commit 47684b4ec2
2 changed files with 6 additions and 8 deletions

View File

@ -84,8 +84,8 @@ final case class ResolutionParams(
override lazy val hashCode =
this match {
case ResolutionParams(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16) =>
(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16) .##
case ResolutionParams(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17) =>
(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17) .##
}
// ResolutionParams.unapply(this).get.##

View File

@ -61,8 +61,7 @@ final class ResolutionSpec extends AnyPropSpec with Matchers {
val resolution =
lmEngine.update(coursierModule, UpdateConfiguration(), UnresolvedWarningConfiguration(), log)
resolution should be('right)
val r = resolution.right.get
val r = resolution.toOption.get
r.configurations.map(_.configuration) should have size configurations.length
val compileConfig = r.configurations.find(_.configuration == Compile.toConfigRef).get
@ -115,7 +114,7 @@ final class ResolutionSpec extends AnyPropSpec with Matchers {
val resolution =
lmEngine.update(coursierModule, UpdateConfiguration(), UnresolvedWarningConfiguration(), log)
resolution should be('right)
assert(resolution.isRight)
}
property("resolve with resolvers using a custom protocols") {
@ -221,8 +220,7 @@ final class ResolutionSpec extends AnyPropSpec with Matchers {
val coursierModule = module(lmEngine, stubModule, dependencies, Some("2.12.4"))
val resolution =
lmEngine.update(coursierModule, UpdateConfiguration(), UnresolvedWarningConfiguration(), log)
resolution should be('right)
assert(resolution.isRight)
}
property("resolve plugins hosted on repo.typesafe.com") {
@ -233,6 +231,6 @@ final class ResolutionSpec extends AnyPropSpec with Matchers {
val resolution =
lmEngine.update(coursierModule, UpdateConfiguration(), UnresolvedWarningConfiguration(), log)
resolution should be('right)
assert(resolution.isRight)
}
}