Skip to content

Scala-Native 0.5.0 support#154

Merged
lihaoyi merged 5 commits intomainfrom
native0.5
Apr 14, 2024
Merged

Scala-Native 0.5.0 support#154
lihaoyi merged 5 commits intomainfrom
native0.5

Conversation

@lihaoyi
Copy link
Copy Markdown
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 lefou and lolgab April 14, 2024 12:25
@lihaoyi
Copy link
Copy Markdown
Member Author

lihaoyi commented Apr 14, 2024

Review by @lolgab @lefou

build.sc Outdated
// 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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
@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