Skip to content

Commit f11c717

Browse files
committed
Allow stdlib-bootstrapped/run to clone paths rooted in scala/scala
1 parent cc40aca commit f11c717

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

project/Build.scala

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1087,8 +1087,9 @@ object Build {
10871087
case Seq(cmd @ ("clone" | "overwrite"), files*) =>
10881088
log.info("Cloning scala-library sources: " + files.mkString(", "))
10891089
for (file <- files) {
1090-
val referenceStdlibPaths = reference / file
1091-
val destination = srcDir / file
1090+
val fileRootedAtInLibraryFolder = file.stripPrefix("src/library/")
1091+
val referenceStdlibPaths = reference / fileRootedAtInLibraryFolder
1092+
val destination = srcDir / fileRootedAtInLibraryFolder
10921093
if (!referenceStdlibPaths.exists) {
10931094
log.error("Not found " + referenceStdlibPaths)
10941095
} else if (destination.exists && cmd == "clone") {

0 commit comments

Comments
 (0)