New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Possible change in dependency publication method or in dependency solving method #2809
Comments
Starting with 1.2.0 we cross compile most module sof Scala CLI with Scala 3 LTS & Next (so right now 3.3.3 & 3.4.0), while publishing the LTS artifacts. @TonioGela TL;DR it seems that this is unintentional and we didn't catch it since technically speaking, those are internal APIs, not necessarily prepared for external use (so there's no guarantees on our side, really). |
It seems that @TonioGela what you need working is the |
So I've been wondering why would
Sigh. |
@Gedochao sorry for the late response and first of all, thanks for your support! (also since my issue wasn't clear at all) I'm not sure we strictly need In any case, any fix will be more than welcome, as we could continue testing successfully. I saw that you've closed it here, is there any snapshot I can try to use to see whether your change fixes our problem too? |
@TonioGela sure, you can try I believe everything should work with
Yes, I believe this is the case. |
Take a look here @Gedochao: https://github.com/typelevel/toolkit/actions/runs/8482335078/job/23241385459 |
Version(s)
1.2.0
Describe the bug
Sorry for the possibly vague and confused issue title, but I'm confused as well.
In the typelevel toolkit CI we rely on the
org.virtuslab.scala-cli::cli
dependency to run unit tests against all the (versions, platform) combinations we support invoking scala cli directly and not relying on the command line launcher, a process that I also described here as it was really fun to implement.Since the
cli_2.13
artifact isn't available for most of the scala cli versions we've always relied oncli_3
, usingCrossVersion.for2_13Use3
(here)Since 1.2.0, we're getting a dependency resolution error:
Taking a look on maven central I've noticed that
test-runner_2.13
isn't published for 1.2.0, but neither isrunner_2.13
, so I can't really tell where the dependency resolution problem is (or even if there is one). What confuses me the most is what I wrote in theTo Reproduce
section later.To Reproduce
I've minimized the (possible) bug here:
(1.1.3, calling "compile") WORKS:
(1.1.3, calling "test") WORKS:
(1.2.0, calling "compile") WORKS:
(1.2.0, calling "test") FAILS:
and the reported error is
I should also report that switching to the latest scala 3 version makes the four snippet compile and run successfully, so it seems related to the way deps are resolved for scala 2.13, but just for tests as "compile" works correctly despite
runner_2.13
version 1.2.0 was NOT published.Also, ofc, running
scala-cli test X
using the command line launcher where X is a.test.scala
file containing the directive//> using scala 2.13.12
works flawlessly (and this adds even more confusion)Expected behaviour
I won't claim that I expect all four aforementioned snippets to work flawlessly, as this is clearly a non-standard use case that relies on dependencies that weren't meant to be used by the general public, but I would love to be enlightened about what it might be the possible root cause, and if this is due to a design decision that we should cope with to keep testing the typelevel toolkit.
Thanks in advance!
//cc @armanbilge
The text was updated successfully, but these errors were encountered: