[2.x] fix: use new constructor for CantDownloadModule (#8905)

This commit is contained in:
Michał Pawlik 2026-03-14 19:39:15 +01:00 committed by GitHub
parent 866497c6e9
commit 3f9bafc153
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -2,6 +2,7 @@ package lmcoursier.internal
import coursier.core.{ Module, ModuleName, Organization, Resolution }
import coursier.error.ResolutionError.CantDownloadModule
import coursier.version.VersionConstraint
import org.scalatest.funsuite.AnyFunSuite
import org.scalatest.matchers.should.Matchers
@ -11,7 +12,7 @@ class ResolutionRunSpec extends AnyFunSuite with Matchers:
new CantDownloadModule(
Resolution(),
Module(Organization("org"), ModuleName("mod"), Map.empty),
"1.0",
VersionConstraint("1.0"),
errors.toSeq
)