Skip to content

Commit 39c7eb9

Browse files
authored
Merge pull request #3629 from iRevive/sn-0.5.9
Update Scala Native to 0.5.9
2 parents 42e8f4f + 3e97175 commit 39c7eb9

File tree

3 files changed

+4
-14
lines changed

3 files changed

+4
-14
lines changed

io/native/src/main/scala/fs2/io/ioplatform.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ import scala.scalanative.unsigned._
4343
private[fs2] trait ioplatform extends iojvmnative {
4444

4545
private[io] val PathStreamChunkSize =
46-
1 // FIXME https://github.com/scala-native/scala-native/issues/4431
46+
16
4747

4848
private[fs2] def fileDescriptorPoller[F[_]: LiftIO]: F[FileDescriptorPoller] =
4949
IO.pollers

io/shared/src/test/scala/fs2/io/file/FilesSuite.scala

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -545,18 +545,8 @@ class FilesSuite extends Fs2Suite with BaseFileSuite {
545545
Stream
546546
.resource(tempFile)
547547
.flatMap { p =>
548-
Files[IO].list(p).void.recover {
549-
// java.io.UncheckedIOException is unavailable in Scala.js
550-
case e: RuntimeException if isNative =>
551-
e.getCause match {
552-
case ex: NotDirectoryException =>
553-
assertEquals(ex.getMessage, p.toString)
554-
case other =>
555-
fail(s"Unexpected error $other")
556-
}
557-
558-
case ex: NotDirectoryException =>
559-
assertEquals(ex.getMessage, p.toString)
548+
Files[IO].list(p).void.recover { case ex: NotDirectoryException =>
549+
assertEquals(ex.getMessage, p.toString)
560550
}
561551
}
562552
.compile

project/plugins.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ val sbtTypelevelVersion = "0.8.1"
22
addSbtPlugin("org.typelevel" % "sbt-typelevel" % sbtTypelevelVersion)
33
addSbtPlugin("org.typelevel" % "sbt-typelevel-site" % sbtTypelevelVersion)
44
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.20.1")
5-
addSbtPlugin("org.scala-native" % "sbt-scala-native" % "0.5.8")
5+
addSbtPlugin("org.scala-native" % "sbt-scala-native" % "0.5.9")
66
addSbtPlugin("com.armanbilge" % "sbt-scala-native-config-brew-github-actions" % "0.4.0")
77
addSbtPlugin("io.github.sbt-doctest" % "sbt-doctest" % "0.12.2")
88
addSbtPlugin("pl.project13.scala" % "sbt-jmh" % "0.4.8")

0 commit comments

Comments
 (0)