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

Cross-build for Scala Native #1310

Merged
merged 1 commit into from
Oct 26, 2022

Conversation

armanbilge
Copy link
Contributor

Closes #1301.

Comment on lines -104 to +105
lazy val munit = Def.setting("org.scalameta" %% "munit" % "0.7.21" % Test)
lazy val munitDiscipline = Def.setting("org.typelevel" %% "discipline-munit" % "1.0.9" % Test)
lazy val munit = Def.setting("org.scalameta" %%% "munit" % "1.0.0-M6" % Test)
lazy val munitDiscipline = Def.setting("org.typelevel" %%% "discipline-munit" % "2.0.0-M3" % Test)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Note the missing %. Previously tests were not being run on JS at all.

Comment on lines -81 to -84
implicit def uuidArbitrary: Arbitrary[UUID] = Arbitrary(UUID.randomUUID)

implicit def uuidCoGen: Cogen[UUID] =
Cogen[(Long, Long)].contramap[UUID]((u: UUID) => (u.getMostSignificantBits, u.getLeastSignificantBits))
Copy link
Contributor Author

Choose a reason for hiding this comment

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

ScalaCheck already provides these. That implementation is preferable because:

  1. It respects the ScalaCheck seed so it is reproducible.
  2. randomUUID was recently affected by a CVE. See GHSA-j2f9-w8wh-9ww4

@julien-truffaut julien-truffaut merged commit ec9b844 into optics-dev:master Oct 26, 2022
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.

Bring back Native support?
2 participants