-
Notifications
You must be signed in to change notification settings - Fork 21
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
Scala 2.11 cross-compilation & Slick upgrade to 3.2.0 final #17
Conversation
Codecov Report
@@ Coverage Diff @@
## master #17 +/- ##
=======================================
Coverage 93.75% 93.75%
=======================================
Files 1 1
Lines 16 16
=======================================
Hits 15 15
Misses 1 1
Continue to review full report at Codecov.
|
@@ -7,7 +7,7 @@ import slick.ast.MappedScalaType | |||
import slick.lifted.{ Shape, ShapeLevel, FlatShapeLevel, MappedProductShape, MappedProjection } | |||
|
|||
final class HListShape[L <: ShapeLevel, M <: HList, U <: HList : ClassTag, P <: HList] | |||
(val shapes: Seq[Shape[_, _, _, _]]) extends MappedProductShape[L, HList, M, U, P] { | |||
(val shapes: Seq[Shape[_<: ShapeLevel, _, _, _]]) extends MappedProductShape[L, HList, M, U, P] { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was this change required for 2.11, or... something else?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's related to slick version bump (to 3.2.0), the first commit.
The cross compilation seems transparent
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK: it was a change in Slick between M2 and final:
HListShape.scala:10: overriding value shapes in class ProductNodeShape of type Seq[slick.lifted.Shape[_ <: slick.lifted.ShapeLevel, _, _, _]];
[error] value shapes has incompatible type
[error] (val shapes: Seq[Shape[_, _, _, _]]) extends MappedProductShape[L, HList, M, U, P] {
[error] ^
[error] one error found
Thanks @StudioDev - I've left one question on a change, but great! Thank you... we'll get a build out as soon as we can and I'll post an update here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM - thanks!
This looks great! Thanks! |
That's being pushed out to Maven central. Give it a couple of hours and it should be there as version 0.3.2 https://github.com/underscoreio/slickless/releases/tag/0.3.2 |
Perfect, thanks :) |
Hello,
This PR aims to use your lib with Slick 3.2.0 with Scala 2.11.x. I've just enable the crossScalaCompilation in your build, and it seems to work (tested with
+ publishLocal
).A new release with this scala 2.11 compatibility would be highly appreciated :)