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

Migrate to Scala 3 #129

Closed
jeffmay opened this issue May 30, 2022 · 2 comments
Closed

Migrate to Scala 3 #129

jeffmay opened this issue May 30, 2022 · 2 comments

Comments

@jeffmay
Copy link

jeffmay commented May 30, 2022

Is it possible to use the code generation with Scala 3.x and ZIO 2.x?

I tried to do this locally and had issues with:

[error] (potatoes / update) sbt.librarymanagement.ResolveException: Error downloading com.github.ghostdogpr:caliban-tools_3:2.0.0-RC2
[error]   Not found
[error]   Not found
[error]   not found: /Users/jeffmay/.ivy2/localcom.github.ghostdogpr/caliban-tools_3/2.0.0-RC2/ivys/ivy.xml
[error]   not found: https://repo1.maven.org/maven2/com/github/ghostdogpr/caliban-tools_3/2.0.0-RC2/caliban-tools_3-2.0.0-RC2.pom

It looks like the caliban-tools project is not compiled to Scala 3, and I'm not sure how the dependency is being added (otherwise I would attempt to use the Scala 2.13 compiled version).

Is this dependent on fixing this issue? It looks like a potential fix has been sitting as a pull request since the beginning of this year. Is there any work around? Or does this PR need to be merged first?

Thanks!

@guizmaii
Copy link
Owner

Hey,

Sorry for the late reply.

Is it possible to use the code generation with Scala 3.x and ZIO 2.x?

Not yet but someone is actively working on it here: ghostdogpr/caliban#1415

I'm currently trying to migrate this POC to ZIO2 here: #155

When it'll be done, I'll migrate it to Scala3 in another PR ;)

@guizmaii
Copy link
Owner

FYI @jeffmay , it has been fixed in v2.0.1 of Caliban: https://github.com/ghostdogpr/caliban/releases/tag/v2.0.1

@jeffmay jeffmay closed this as completed Dec 9, 2022
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

No branches or pull requests

2 participants