File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
cli/src/main/kotlin/com/bazel_diff/bazel Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 11module (
22 name = "bazel-diff" ,
3- version = "13.1.1 " ,
3+ version = "13.1.2 " ,
44 compatibility_level = 0 ,
55)
66
Original file line number Diff line number Diff line change @@ -53,9 +53,9 @@ class BazelQueryService(
5353 if (result.output.size != 1 || ! result.output.first().startsWith(" bazel " )) {
5454 throw RuntimeException (" Bazel version command returned unexpected output: ${result.output} " )
5555 }
56- // Trim off any prerelease suffixes.
56+ // Trim off any prerelease suffixes (e.g., 8.6.0-rc1 or 8.6.0rc1) .
5757 val versionString = result.output.first().removePrefix(" bazel " ).trim().split(' -' )[0 ]
58- val version = versionString.split(' .' ).map { it.toInt() }.toTypedArray()
58+ val version = versionString.split(' .' ).map { it.takeWhile { c -> c.isDigit() }. toInt() }.toTypedArray()
5959 return Triple (version[0 ], version[1 ], version[2 ])
6060 }
6161
You can’t perform that action at this time.
0 commit comments