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

Build //libs-scala/... on 2.13 #8282

Merged
merged 6 commits into from
Dec 14, 2020
Merged

Build //libs-scala/... on 2.13 #8282

merged 6 commits into from
Dec 14, 2020

Conversation

cocreature
Copy link
Contributor

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

  • Read and understand the contribution guidelines
  • Include appropriate tests
  • Set a descriptive title and thorough description
  • Add a reference to the issue this PR will solve, if appropriate
  • Include changelog additions in one or more commit message bodies between the CHANGELOG_BEGIN and CHANGELOG_END tags
  • Normal production system change, include purpose of change in description

NOTE: CI is not automatically run on non-members pull-requests for security
reasons. The reviewer will have to comment with /AzurePipelines run to
trigger the build.

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",
Copy link
Contributor Author

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]])(
Copy link
Contributor Author

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.

Copy link

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
@@ -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]])(
Copy link

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 {
Copy link

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

🤷

Co-authored-by: Samir Talwar <samir.talwar@digitalasset.com>
cocreature and others added 2 commits December 14, 2020 17:41
…uildFrom.scala

Co-authored-by: Stephen Compall <stephen.compall@daml.com>
changelog_begin
changelog_end
@mergify mergify bot merged commit 1b32044 into master Dec 14, 2020
@mergify mergify bot deleted the libs-scala-2.13 branch December 14, 2020 17:36
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.

2 participants