Find most specific version of compiler interface sources#2106
Find most specific version of compiler interface sources#2106
Conversation
|
Can one of the admins verify this patch? |
There was a problem hiding this comment.
Glad to see this has a name :). Can you add a comment on what this class is meant to do?
|
Genereally, LGTM. Great work! |
1ebd4dc to
0df55a2
Compare
|
Feedback addressed, thanks! |
There was a problem hiding this comment.
This part feels stringy. I wonder if it could be represented as Vector[VersionNumber] and fold this cascade logic also into the class.
There was a problem hiding this comment.
I implemented it directly in VersionNumber, and moved the tests to VersionNumberSpec. The implementation is much shorter now :).
|
Yea. Generally this looks pretty awesome. Some minor comments/concerns. |
This commit introduces a mechanism that allows sbt to find the most specific version of the compiler interface sources that exists using Ivy. For instance, when asked for a compiler interface for Scala 2.11.8-M2, sbt will look for sources for: - 2.11.8-M2 ; - 2.11.8 ; - 2.11 ; - the default sources. This commit also modifies the build definition by removing the precompiled projects and configuring the compiler-interface project so that it publishes its source artifacts in a Maven-friendly format.
0df55a2 to
90a8423
Compare
|
Thanks for the update. LGTM pending Travis and notes. |
|
So this test is failed on Travis twice a row, so it could be legit? |
|
|
Those are the notes for the mechanism implemented in sbt/sbt#2106.
Could you explain why that is? Do we have to change the test? |
|
@eed3si9n Martin is seeing odd stale cache issues unless he does that. The kind of issue that doesn't make any sense (i.e. failure to find a pom.xml file that was just published). |
|
@eed3si9n I'm cool merging this if you are. |
Find most specific version of compiler interface sources
|
Merged |
|
Shall we merge sbt/website#172 too then? |
Find most specific version of compiler interface sources
Ref #681
This commit introduces a mechanism that allows sbt to find the most
specific version of the compiler interface sources that exists using
Ivy.
For instance, when asked for a compiler interface for Scala 2.11.8-M2,
sbt will look for sources for:
This commit also modifies the build definition by removing the
precompiled projects and configuring the compiler-interface project so
that it publishes its source artifacts in a Maven-friendly format.