Skip to content

Commit 24d957d

Browse files
authored
Accept Configuration.buildArguments in the Bazel scan (#964)
1 parent 1ef0b62 commit 24d957d

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

Sources/ProjectDrivers/BazelProjectDriver.swift

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,13 +106,16 @@ public class BazelProjectDriver: ProjectDriver {
106106
logger.info("\(asterisk) Building...")
107107
}
108108

109-
let status = try shell.execStatus([
109+
var arguments = [
110110
"bazel",
111111
"run",
112112
"--check_visibility=false",
113113
"--ui_event_filters=-info,-debug,-warning",
114-
"@periphery_generated//:scan",
115-
])
114+
]
115+
arguments.append(contentsOf: configuration.buildArguments)
116+
arguments.append("@periphery_generated//:scan")
117+
118+
let status = try shell.execStatus(arguments)
116119

117120
// The actual scan is performed by Bazel.
118121
exit(status)

0 commit comments

Comments
 (0)