-
Notifications
You must be signed in to change notification settings - Fork 205
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
Build //libs-scala/... on 2.13 #8282
Conversation
One test is unfortunately disabled at the moment since I utterly failed to figure out why I get a ClassNotFoundException on 2.13. changelog_begin changelog_end
@@ -42,6 +42,7 @@ version_specific = { | |||
"-Xlint:unsound-match", | |||
"-Xlint:by-name-right-associative", # will never be by-name if used correctly | |||
"-Xfuture", | |||
"-language:higherKinds", |
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.
The alternative is to silence unused imports on 2.13 either selectively or completely. This seemed nicer but open to changing it.
@@ -101,12 +98,12 @@ final class ResourceFactories[Context: HasExecutionContext] { | |||
* @tparam U The return type. | |||
* @return A [[Resource]] with a sequence of the values of the sequenced [[Resource]]s as its underlying value. | |||
*/ | |||
def sequence[T, C[X] <: Traversable[X], U](seq: C[R[T]])( |
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.
@S11001001 @SamirTalwar-DA My CanBuildFrom
foo is very weak so please review this closely.
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 looks fine for me, and the tests should fail if it's wrong. I can't say for sure though because I haven't used 2.13's Factory
.
changelog_begin changelog_end
changelog_begin changelog_end
2dac432
to
eaca75c
Compare
...i/rs-grpc-akka/src/main/scala/com/digitalasset/grpc/adapter/AkkaExecutionSequencerPool.scala
Outdated
Show resolved
Hide resolved
...xtualized-logging/src/test/suite/scala/com/digitalasset/logging/ContextualizedLoggerIT.scala
Show resolved
Hide resolved
@@ -101,12 +98,12 @@ final class ResourceFactories[Context: HasExecutionContext] { | |||
* @tparam U The return type. | |||
* @return A [[Resource]] with a sequence of the values of the sequenced [[Resource]]s as its underlying value. | |||
*/ | |||
def sequence[T, C[X] <: Traversable[X], U](seq: C[R[T]])( |
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 looks fine for me, and the tests should fail if it's wrong. I can't say for sure though because I haven't used 2.13's Factory
.
|
||
override def run(): Unit = { | ||
p.tryCompleteWith { | ||
p.completeWith { |
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, clearly this API was already broken, but I'm surprised they deprecated tryCompleteWith
and not this one, as the semantics are far closer to trySuccess
and tryFailure
.
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.
🤷
libs-scala/resources/src/main/2.13/com/daml/resources/UnitCanBuildFrom.scala
Outdated
Show resolved
Hide resolved
Co-authored-by: Samir Talwar <samir.talwar@digitalasset.com>
…uildFrom.scala Co-authored-by: Stephen Compall <stephen.compall@daml.com>
changelog_begin changelog_end
One test is unfortunately disabled at the moment since I utterly
failed to figure out why I get a ClassNotFoundException on 2.13.
changelog_begin
changelog_end
Pull Request Checklist
CHANGELOG_BEGIN
andCHANGELOG_END
tagsNOTE: CI is not automatically run on non-members pull-requests for security
reasons. The reviewer will have to comment with
/AzurePipelines run
totrigger the build.