Skip to content

Commit

Permalink
Add conditional around SetStartupArgs (#13)
Browse files Browse the repository at this point in the history
-If startup options aren't set, the differ currently crashes. This
change fixes the issue
  • Loading branch information
numine777 authored Aug 31, 2022
1 parent 858e59d commit e249c57
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/bazel_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,9 @@ func (b bazelClient) performBazelQuery(query string) ([]*Target, error) {
cmd = append(cmd, "--noshow_progress")
cmd = append(cmd, "--noshow_loading_progress")
}
b.bazel.SetStartupArgs(b.startupOptions)
if b.startupOptions[0] != "" {
b.bazel.SetStartupArgs(b.startupOptions)
}
cmd = append(cmd, "--order_output=no")
if b.keepGoing {
cmd = append(cmd, "--keep_going")
Expand Down

0 comments on commit e249c57

Please sign in to comment.