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

Fix default scalaBinaryVersion for Dotty #3152

Merged
merged 1 commit into from
May 3, 2017

Conversation

smarter
Copy link
Contributor

@smarter smarter commented Apr 28, 2017

Dotty is versioned as 0.*, but CrossVersionUtil#binaryScalaVersion
will return the full version instead of just major.minor for all
compiler versions < 2.10, add a special case for Dotty to avoid this.

Dotty is versioned as 0.*, but `CrossVersionUtil#binaryScalaVersion`
will return the full version instead of just `major.minor` for all
compiler versions < 2.10, add a special case for Dotty to avoid this.

Note: I used tabs in this commit to match the style of the surrounding code.
@eed3si9n eed3si9n added the ready label Apr 28, 2017
def binaryScalaVersion(full: String): String = binaryVersionWithApi(full, TransitionScalaVersion)(scalaApiVersion)
def binaryScalaVersion(full: String): String = {
val cutoff =
if (full.startsWith("0."))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is.. unfortunate.

@dwijnand
Copy link
Member

oops, miss clicked "request changes".

@smarter
Copy link
Contributor Author

smarter commented Apr 29, 2017

Another spurious test failure, unrelated to the PR:

[info] [error] (*:ivyConfiguration) Could not create file /tmp/sbt_3d9e72fd/info/target/streams/$global/ivyConfiguration/$global/streams/outjava.io.IOException: No such file or directory

[info] [error] Total time: 0 s, completed Apr 28, 2017 1:05:03 PM

[error] x dependency-management / info

[error]    {line 4}  Command failed: clean failed

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

Successfully merging this pull request may close these issues.

None yet

3 participants