Skip to content

Commit ebadb18

Browse files
Generate hashes does not fully respect bazelStartupOptions (#216)
Fixes #215 WIP, should address underlying issue
1 parent 0254229 commit ebadb18

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

cli/src/main/kotlin/com/bazel_diff/di/Modules.kt

+7-1
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,15 @@ fun hasherModule(
3030
keepGoing: Boolean,
3131
fineGrainedHashExternalRepos: Set<String>,
3232
): Module = module {
33+
val cmd: MutableList<String> = ArrayList<String>().apply {
34+
add(bazelPath.toString())
35+
addAll(startupOptions)
36+
add("info")
37+
add("output_base")
38+
}
3339
val result = runBlocking {
3440
process(
35-
bazelPath.toString(), "info", "output_base",
41+
*cmd.toTypedArray(),
3642
stdout = Redirect.CAPTURE,
3743
workingDirectory = workingDirectory.toFile(),
3844
stderr = Redirect.PRINT,

0 commit comments

Comments
 (0)