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

Upgrade scala 2.12.x and 2.13.x versions #1515

Merged
merged 4 commits into from
Oct 2, 2023

Conversation

scoquelin
Copy link
Contributor

Description

Bumping supported Scala 2.12 and 2.13 minor versions

Found a compilation issue related to kind_projector so updated to latest artifacts as well for all Scala major versions.

Motivation

I wanted to level up minor Scala versions before trying to tackle #1514 that has breaking changes related to Scala 2.13.12

class KKTImpl extends HKT[Either[String, *]]
Copy link
Contributor Author

@scoquelin scoquelin Sep 28, 2023

Choose a reason for hiding this comment

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

This commit has broken compilation for this file (since Scala 2.12.16) as ? was repurposed for Scala 3. Found out that replacing ? by * was the simplest workaround to avoid bringing -Xsource:3 (and more) compiler flags just yet.

See https://docs.scala-lang.org/scala3/guides/migration/plugin-kind-projector.html for more info... this one took me a bit to figure out 😅

Comment on lines +12 to +20
BRDA:5,0,0,1
BRDA:5,0,1,0
BRF:2
BRH:1
DA:3,1
DA:5,1
DA:6,1
DA:6,0
DA:7,1
LH:4
LH:3
Copy link
Contributor Author

@scoquelin scoquelin Sep 28, 2023

Choose a reason for hiding this comment

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

Not sure where the changes in the coverage files comes from but after generating and inspecting coverage reports new changes are definitely more accurate as the failure case for A1.a1(false) was actually not covered by the test and is now depicted as a missing branch in the report.

Before :

expected-coverage-scalatest

After :

actual-coverage-scalatest

@scoquelin scoquelin force-pushed the upgrade-scala-versions branch from dabd033 to cb25892 Compare September 28, 2023 03:53
Copy link
Collaborator

@simuons simuons left a comment

Choose a reason for hiding this comment

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

Thanks @scoquelin

@liucijus liucijus merged commit 73719cb into bazelbuild:master Oct 2, 2023
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.

3 participants