Skip to content

Commit eabfdbe

Browse files
committed
Restore SbtFile and null guards in JVM sourceFiles match
Lost during Run.scala restructure for Wasm: restores the original case _: SbtFile => "" and case null => "" branches so SbtFile inputs are properly filtered from scala.sources JVM property.
1 parent f692f19 commit eabfdbe

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • modules/cli/src/main/scala/scala/cli/commands/run

modules/cli/src/main/scala/scala/cli/commands/run/Run.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -677,8 +677,9 @@ object Run extends ScalaCommand[RunOptions] with BuildCommandHelpers {
677677
case s: ScalaFile => fwd(s.path.toString)
678678
case s: Script => fwd(s.path.toString)
679679
case s: MarkdownFile => fwd(s.path.toString)
680+
case _: SbtFile => ""
680681
case s: OnDisk => fwd(s.path.toString)
681-
case s => s.getClass.getName
682+
case null => ""
682683
}.filter(_.nonEmpty).distinct
683684
val sources = sourceFiles.mkString(File.pathSeparator)
684685
val sourceNames = sourceFiles.map(base).mkString(File.pathSeparator)

0 commit comments

Comments
 (0)