Skip to content

Commit 66b6dff

Browse files
Fix bisect script to emit bash compliant script code (#18167)
The bisection script had a bug introduced in #18157 that was failing at runtime when executing bisect
2 parents 3de184c + 2bc9089 commit 66b6dff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: project/scripts/bisect.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ class CommitBisect(validationScript: File, shouldFail: Boolean, bootstrapped: Bo
235235
val scala3CompilerProject = if bootstrapped then "scala3-compiler-bootstrapped" else "scala3-compiler"
236236
val scala3Project = if bootstrapped then "scala3-bootstrapped" else "scala3"
237237
val validationCommandStatusModifier = if shouldFail then "! " else "" // invert the process status if failure was expected
238-
val bisectRunScript = s"""
238+
val bisectRunScript = raw"""
239239
|scalaVersion=$$(sbt "print ${scala3CompilerProject}/version" | tail -n1)
240240
|rm -r out
241241
|sbt "clean; set every doc := new File(\"unused\"); set scaladoc/Compile/resourceGenerators := (\`${scala3Project}\`/Compile/resourceGenerators).value; ${scala3Project}/publishLocal"

0 commit comments

Comments
 (0)