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

Moshi-sealed-runtime: More than one file was found with OS independent path 'META-INF/runtime.kotlin_module' #129

Closed
slmlt opened this issue Jul 3, 2021 · 5 comments

Comments

@slmlt
Copy link
Contributor

slmlt commented Jul 3, 2021

After adding dev.zacsweers.moshix:moshi-sealed-runtime:0.11.2 dependency, project fails to build with the following error:
More than one file was found with OS independent path 'META-INF/runtime.kotlin_module'.
It seems like a module name mangling problem, as stated here https://ncorti.com/blog/name-mangling-in-kotlin
Possible solution is to pass the -module-name compiler flag in the library (in fact, it might prove useful to add this statement to all moshiX libraries)

@ZacSweers
Copy link
Owner

Want to send a PR?

slmlt pushed a commit to slmlt/MoshiX that referenced this issue Jul 5, 2021
@slmlt
Copy link
Contributor Author

slmlt commented Jul 5, 2021

Sure. That should fix it: #130

@slmlt
Copy link
Contributor Author

slmlt commented Jul 5, 2021

Thanks! I plan to cut a release after KSP beta05 is out, hopefully this week

Thank you for the quick response! Would be great to see an update as soon as possible though, as this issue kinda blocks a feature in a project I am currently working on :)

@ZacSweers
Copy link
Owner

You're welcome to use a snapshot or build from source until then

slmlt pushed a commit to slmlt/MoshiX that referenced this issue Jul 17, 2021
slmlt pushed a commit to slmlt/MoshiX that referenced this issue Jul 17, 2021
ZacSweers added a commit that referenced this issue Jul 17, 2021
…arnings (#134)

* [Issue #129] Use kotlinOptions instead of freeCompilerArgs to avoid warnings

* Update access

Co-authored-by: Alexander Ivanov (KODE) <iv@appkode.ru>
Co-authored-by: Zac Sweers <pandanomic@gmail.com>
@ZacSweers
Copy link
Owner

Resolved in 0.12.0

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