typelevel / cats-effect

The pure asynchronous runtime for Scala
https://typelevel.org/cats-effect/
Apache License 2.0
1.99k stars 511 forks source link

Add `mdoc` guards to test-runtime.md. #4097

Open kamilkloch opened 4 days ago

kamilkloch commented 4 days ago

Fixes #4095.

TonioGela commented 3 days ago

@kamilkloch I think the error might be due to the fact that munit-cats-effect 2.0.0 is released against Scala 3.3.3, while the Scala 3 build here is against 3.2.2.

kamilkloch commented 3 days ago

@kamilkloch I think the error might be due to the fact that munit-cats-effect 2.0.0 is released against Scala 3.3.3, while the Scala 3 build here is against 3.2.2.

Thank you for the valuable hint! Is there any way a develper can see the min required Scala 3 version on an artifact? No hint in maven: https://mvnrepository.com/artifact/org.typelevel/munit-cats-effect_3/2.0.0

mzuehlke commented 3 days ago

Is there any way a develper can see the min required Scala 3 version on an artifact? No hint in maven: mvnrepository.com/artifact/org.typelevel/munit-cats-effect_3/2.0.0

kamilkloch commented 3 days ago

@mzuehlke Thank you! Also, I am pasting here a crazy snippet by @indoorvivants to resolve the dependencies using scala-cli:

$ echo "coursier.cli.Coursier.main(args)" | scala-cli run _.sc --dep io.get-coursier:coursier-cli_2.13:latest.release -- resolve org.typelevel:munit-cats-effect_3:2.0.0
Compiling project (Scala 3.4.2, JVM (17))
Compiled project (Scala 3.4.2, JVM (17))
junit:junit:4.13.2:default
org.hamcrest:hamcrest-core:1.3:default
org.scala-lang:scala-library:2.13.12:default
org.scala-lang:scala3-library_3:3.3.3:default
org.scala-sbt:test-interface:1.0:default
org.scalameta:junit-interface:1.0.0:default
org.scalameta:munit-diff_3:1.0.0:default
org.scalameta:munit_3:1.0.0:default
org.typelevel:cats-core_3:2.9.0:default
org.typelevel:cats-effect-kernel_3:3.5.4:default
org.typelevel:cats-effect-std_3:3.5.4:default
org.typelevel:cats-effect_3:3.5.4:default
org.typelevel:cats-kernel_3:2.9.0:default
org.typelevel:munit-cats-effect_3:2.0.0:default