zio-flow
zio-flow copied to clipboard
Scala 3 support
Depends on https://github.com/zio/zio-schema/issues/395
Any news on this? looks like zio-schema already supports Scala 3.
It's work in progress: https://github.com/zio/zio-flow/pull/246
I'm blocked on some weird issues. The most recent one:
I noticed noticed earlier that in zio-flow some zio-prelude Newtypes are not working with Scala 3 - their .apply macro is not type checking, Scala 3 says it has type Any and not the actual type. But it only happened in some tests and in other places in the codebase they worked. Now I discovered the following: The newtypes are defined in zioFlow's main sourceset which is a cross-project (jvm/js - probably does not matter) The non-compiling tests are in an other module, zioFlowRuntime which was using sbt's dependsOn(zioFlowJvm % "compile->compile;test->test") syntax because it shared some generators defined from zioFlow's test source set (this is jvm only) if I duplicate the shared things in zioFlowRuntime's test source set, not touching the newtype definitions at all, and do dependsOn(zioFlowJVM) then it works (fails with some implicit errors unrelated to the newtypes, to be fixed)
Any news?
I stopped working on this a long time ago. There is a draft PR https://github.com/zio/zio-flow/pull/246 if anyone wants to pick it up.