From 3f9bafc153adcc063d8ddaf4cc6a541cd79ab7b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Pawlik?= Date: Sat, 14 Mar 2026 19:39:15 +0100 Subject: [PATCH] [2.x] fix: use new constructor for CantDownloadModule (#8905) --- .../src/test/scala/lmcoursier/internal/ResolutionRunSpec.scala | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lm-coursier/src/test/scala/lmcoursier/internal/ResolutionRunSpec.scala b/lm-coursier/src/test/scala/lmcoursier/internal/ResolutionRunSpec.scala index 9b00657b3..a3ad3f4e0 100644 --- a/lm-coursier/src/test/scala/lmcoursier/internal/ResolutionRunSpec.scala +++ b/lm-coursier/src/test/scala/lmcoursier/internal/ResolutionRunSpec.scala @@ -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 )