-
Notifications
You must be signed in to change notification settings - Fork 338
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
Add support for Scala 3 3.0.0-M2 #2260
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -182,9 +182,11 @@ object Embedded { | |
scalaVersion: String, | ||
scalaBinaryVersion: String | ||
): Dependency = { | ||
// Mdoc support for 0.27.0-RC1 was dropped with "2.2.11" | ||
// Mdoc support for 0.27.0-RC1 was dropped with "2.2.11" and for 3.0.0-M1 with "2.12.13" | ||
val mdocVersion = | ||
if (scalaVersion == "0.27.0-RC1") "2.2.10" else BuildInfo.mdocVersion | ||
if (scalaVersion == "0.27.0-RC1") "2.2.10" | ||
else if (scalaVersion == "3.0.0-M1") "2.2.12" | ||
else BuildInfo.mdocVersion | ||
Comment on lines
+187
to
+189
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I honestly don't love that we are doing this. Was it just not possible to publish mdoc for both M1 and M2? It seems a bit extreme that have to have logic to include 1 of 3 different versions of a single dependency. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It seemed simpler to just put in the logic here. We need to double the code for each Scala 3 version currently and it's really only Metals doing it. I might have been too quick, but there was no real changes between all those changes that would impact worksheets. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. After the changes in scala/scala3#10172 we should be able to just do scalameta/mdoc@81e43c1 |
||
Dependency.of( | ||
"org.scalameta", | ||
s"mdoc_${scalaBinaryVersion}", | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just because I don't fully remember where we ended up on this. How long will we keep 0.27.0-RC1 around as non-deprecated?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably under the end of the course at EPFL.