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

Scala-Native 0.5.0 support #154

Merged
merged 5 commits into from
Apr 14, 2024
Merged

Scala-Native 0.5.0 support #154

merged 5 commits into from
Apr 14, 2024

Conversation

lihaoyi
Copy link
Member

@lihaoyi lihaoyi commented Apr 14, 2024

This required a Mill version upgrade to 0.11.x, which involved cleaning up a lot of now-unnecessary boilerplate in the build.sc.

Same version changes as elsewhere: drop 2.11.x/3.1.x/3.2.x support, add Scala-Native 0.5.0

@lihaoyi lihaoyi requested review from lolgab and lefou April 14, 2024 12:25
@lihaoyi
Copy link
Member Author

lihaoyi commented Apr 14, 2024

Review by @lolgab @lefou

build.sc Outdated
@@ -28,7 +24,7 @@ trait SourcecodeModule extends PublishModule with MimaCheck {
// Temporary until the next version of Mima gets released with
// https://github.com/lightbend/mima/issues/693 included in the release.
def mimaPreviousArtifacts =
if(isScala3(crossScalaVersion)) Agg.empty[Dep] else super.mimaPreviousArtifacts()
if(crossScalaVersion.startsWith("3.")) Agg.empty[Dep] else super.mimaPreviousArtifacts()
Copy link
Member

Choose a reason for hiding this comment

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

isScala3 still exists but is inside ZincWorkerUtil now I believe

Copy link
Member Author

Choose a reason for hiding this comment

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

fixed


def scalaNativeVersion = "0.5.0"
object test extends ScalaNativeTests{
// stub to make use of test plumbing but not running a test suite
Copy link
Member

Choose a reason for hiding this comment

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

Why can't we run tests on Scala Native?

Copy link
Member Author

Choose a reason for hiding this comment

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

@lolgab sourcecode doesnt use a test framework, it just runs through the asserts starting from def main. But the build level plumbing for nested test modules w.r.t. cross version and cross platform modules is very handy, so I'm abusing it a bit

@lihaoyi lihaoyi merged commit 71c26bb into main Apr 14, 2024
3 of 4 checks passed
@lihaoyi lihaoyi deleted the native0.5 branch April 14, 2024 13:33
@lefou lefou added this to the 0.4.0 milestone Apr 16, 2024
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