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 Scala 3 support #252
Add Scala 3 support #252
Conversation
de0811e
to
f200fb3
Compare
Sorry for ping @travisbrown @jonas, can we get your feedbacks on this PR (you can have a look at #253 as well). That's the last dependency preventing us to finish Scala 3 migration. Happy to help, and of course update the PRs based on your feedbacks. |
Looks good to me, thanks! |
@travisbrown may I help for this PR? |
👋 @jonas, you seem to be listed as the maintainer of this repository. What can I do to help for this PR? Don't hesitate if you want me to change anything, rebase, etc. We would love to unlock Scala 3 users. |
I'm happy to merge as-is and I can publish a release, but I'd like to get a sign-off from @jonas as the project owner. |
@jonas can we help on anything? |
@travisbrown sorry to disturb you but do you have any idea on how to handle this situation? |
f200fb3
to
c518f62
Compare
I just rebased the PR, bumped Scala to For people looking for a workaround while waiting for this PR to merged:
|
@travisbrown Sorry to continue to be a pain, but any chance this could also be merged? cc @jonas |
@travisbrown @jonas Giving this a final try. I really don't want to have to fork and publish separately. Please advise if this project is no longer maintained so those of us who are using it can plan and act accordingly. |
@arashi01 It's time to publish. |
I published this on the public Sonatype, you can use now:
Imports still remain Sorry for not waiting for anyone, this has been on hold for a long time. I'm not the developer of this project, I don't want to take any credit for this, haven't changed much in the README, nothing much in |
Published circe-config for cats-effect-3 and Scala 3.2.0
https://github.com/kovacshuni/circe-config/releases/tag/0.10.0 |
Thanks for the PR, @vhiairrassary! I merged the latest changes from |
Simply adding Scala 3 in the build matrix is not enough as
CirceConfigSpec
cannot compile since it is using automatic derivation (io.circe.generic.auto._
), which is not yet fully supported for Scala 3 (same about semi-automatic derivation).As a workaround, I duplicated the test file and manually implemented the decoders. Would you be ok with this solution? Or you prefer to wait for the complete support?
Diff between files
Generated with
diff -u src/test/scala-2/io.circe.config/CirceConfigSpec.scala src/test/scala-3/io.circe.config/CirceConfigSpec.scala
Green build: https://github.com/vhiairrassary/circe-config/actions/runs/1226685164 (you can see the remaining warnings and scoverage disabled).
Remaining work
publishLocal
):