Skip to content

Commit 3b83317

Browse files
soronpoOron Port
and
Oron Port
authored
Minor improvements to bisect.scala (#18422)
* Fix bisect release flag documentation to use `...` * Silence rm with `-f` in case out is missing --------- Co-authored-by: Oron Port <[email protected]>
1 parent 794ed7d commit 3b83317

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

project/scripts/bisect.scala

+4-4
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ val usageMessage = """
3535
|* --releases <releases-range>
3636
| Bisect only releases from the given range (defaults to all releases).
3737
| The range format is <first>...<last>, where both <first> and <last> are optional, e.g.
38-
| * 3.1.0-RC1-bin-20210827-427d313-NIGHTLY..3.2.1-RC1-bin-20220716-bb9c8ff-NIGHTLY
39-
| * 3.2.1-RC1-bin-20220620-de3a82c-NIGHTLY..
40-
| * ..3.3.0-RC1-bin-20221124-e25362d-NIGHTLY
38+
| * 3.1.0-RC1-bin-20210827-427d313-NIGHTLY...3.2.1-RC1-bin-20220716-bb9c8ff-NIGHTLY
39+
| * 3.2.1-RC1-bin-20220620-de3a82c-NIGHTLY...
40+
| * ...3.3.0-RC1-bin-20221124-e25362d-NIGHTLY
4141
| The ranges are treated as inclusive.
4242
|
4343
|* --bootstrapped
@@ -241,7 +241,7 @@ class CommitBisect(validationScript: File, shouldFail: Boolean, bootstrapped: Bo
241241
val validationCommandStatusModifier = if shouldFail then "! " else "" // invert the process status if failure was expected
242242
val bisectRunScript = raw"""
243243
|scalaVersion=$$(sbt "print ${scala3CompilerProject}/version" | tail -n1)
244-
|rm -r out
244+
|rm -rf out
245245
|sbt "clean; set every doc := new File(\"unused\"); set scaladoc/Compile/resourceGenerators := (\`${scala3Project}\`/Compile/resourceGenerators).value; ${scala3Project}/publishLocal"
246246
|${validationCommandStatusModifier}${validationScript.getAbsolutePath} "$$scalaVersion"
247247
""".stripMargin

0 commit comments

Comments
 (0)