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

Dotty build #23

Open
cquiroz opened this issue Nov 20, 2020 · 3 comments
Open

Dotty build #23

cquiroz opened this issue Nov 20, 2020 · 3 comments
Labels
wontfix This will not be worked on

Comments

@cquiroz
Copy link

cquiroz commented Nov 20, 2020

Though it seems dotty can run using withDottyCompatibility. it would be nice to get a dotty build of this lib

@sjrd
Copy link
Contributor

sjrd commented Nov 20, 2020

I do not intend to do so. IMO, all libraries should either publish for 2.13, or for 3. Until further notice, I intend to publish for 2.13, and let Scala 3 users depend on it with withDottyCompat.

See scala/scala3#10244 for background.

@sjrd sjrd added the wontfix This will not be worked on label Nov 20, 2020
@larsrh
Copy link

larsrh commented Nov 21, 2020

FWIW, I've confirmed this works fine in minitest, but only because we don't depend on the macros.

@sideeffffect
Copy link
Contributor

sideeffffect commented Jan 25, 2022

I think we should publish Scala 3 build, at least for Scala Native.
doesn't seem to work with Scala Native, because it brings dependencies on libraries (on Maven Central):

sbt> portable-scala-reflectNative/libraryDependencies
[info] * org.scala-lang:scala-library:2.12.13
[info] * org.scala-native:nativelib:0.4.0
[info] * org.scala-native:javalib:0.4.0
[info] * org.scala-native:auxlib:0.4.0
[info] * org.scala-native:scalalib:0.4.0
[info] * org.scala-native:test-interface:0.4.0:test
[info] * org.scala-native:nscplugin:0.4.0:plugin->default(compile)
[info] * org.scala-native:junit-runtime:0.4.0:test
[info] * org.scala-native:junit-plugin:0.4.0:plugin->default(compile)

The .cross(CrossVersion.for3Use2_13) trick then causes this when attempting to use Scala Native with Scala 3:

[error] Modules were resolved with conflicting cross-version suffixes in ProjectRef(uri("file:/home/ondra/Projects/sbt-locales/"), "apiNative"):
[error]    org.scala-native:windowslib_native0.4 _3, _2.13
[error]    org.scala-native:nativelib_native0.4 _3, _2.13
[error]    org.scala-native:javalib_native0.4 _3, _2.13
[error]    org.scala-native:clib_native0.4 _3, _2.13
[error]    org.scala-native:posixlib_native0.4 _3, _2.13
[error]    org.scala-native:auxlib_native0.4 _3, _2.13
[error] stack trace is suppressed; run last apiNative / update for the full output
[error] (apiNative / update) Conflicting cross-version suffixes in: org.scala-native:windowslib_native0.4, org.scala-native:nativelib_native0.4, org.scala-native:javalib_native0.4, org.scala-native:clib_native0.4, org.scala-native:posixlib_native0.4, org.scala-native:auxlib_native0.4

Example of such behavior can be seen in this PR cquiroz/sbt-locales#190

EDIT:
reported to Scala Native scala-native/scala-native#2546

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

4 participants