Skip to content
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

Drop scala 2.11, update scalajs, scala native, some dependancies #452

Merged
merged 9 commits into from
Mar 9, 2023

Conversation

Quafadas
Copy link
Contributor

@Quafadas Quafadas commented Mar 8, 2023

This PR sets out to make as few code changes as possible in order to move versions forward

  • Drops scala 2.11
  • Enabling scala3 support for some ujson modules (circe, json4s)
  • Moves scalajs to 1.13.0
  • moves scala native to 4.5.10

It seems to compile and pass the tests - but mima fails. I'm don't honestly understand if that is problematic, or exactly how to go about fixing it - feedback welcome. This PR is the rider to this discussion;
#451

@lolgab lolgab self-requested a review March 9, 2023 15:52
Copy link
Member

@lolgab lolgab left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!
MiMa is expected to fail since we are in binary-compatibility breaking window.
Going to merge this!

build.sc Outdated
val scala3 = "3.1.3"
val scalaJS = "1.10.1"
val scalaNative = "0.4.5"
val scala3 = "3.2.2"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this needed for some reasons? It means we drop support for Scala 3.1, which is not what we want without reasons.

Copy link
Member

@lolgab lolgab Mar 9, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, good point! Reverted it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for the delay. I think the reason here, was that I was attempting to get some of the extra ujson integrations working.

I think with scala at 3.1.3, this command will fail, because circe has been rolled forward to scala 3.2.2.
mill ujson.circe[3.1.3].compile

[error] class file io/circe/package.class is broken, reading aborted with class dotty.tools.tasty.UnpickleException
[error] TASTy signature has wrong version.
[error]  expected: {majorVersion: 28, minorVersion: 1}
[error]  found   : {majorVersion: 28, minorVersion: 2}
[error]

So I guess, that in current state upickle this would fail to publish correctly. However, I think a better workaround may be to use circe 0.14.1. That at least appears to compile, and I would guess, is the preferred compromise - it is not rational for circe to drive the scala version upickle supports!

I'll put up the teeny tiniest of PRs.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We might need to bump Scala 3 for other reasons, see #454
So let's wait for the other PRs to land before changing anything.

@lolgab lolgab merged commit c2bc960 into com-lihaoyi:main Mar 9, 2023
@lolgab lolgab added this to the 3.0.0-M3 milestone Mar 9, 2023
Quafadas added a commit to Quafadas/upickle that referenced this pull request Mar 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants