Skip to content

Commit fb83011

Browse files
committed
Fix scrooge_support problems on Windows
1 parent 636ef3a commit fb83011

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/scala/io/bazel/rules_scala/scrooge_support/FocusedZipImporter.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ case class FocusedZipImporter(focus: Option[File], zips: List[File], zipFiles: L
3232
case child :: tail => loop(new File(leftPart, child), tail)
3333
}
3434
val parts = n.split("/", -1).toList
35-
val newPath = loop(f, parts).toString
35+
val newPath = loop(f, parts).getPath.replaceAllLiterally(File.separator, "/")
3636
if (parts(0) == File.pathSeparatorChar) newPath.substring(1)
3737
else newPath
3838
}

0 commit comments

Comments
 (0)