Skip to content

Commit

Permalink
refresh.template.py: quoting target_statement
Browse files Browse the repository at this point in the history
  • Loading branch information
xinzhengzhang committed May 5, 2023
1 parent 89f583a commit ef33509
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion refresh.template.py
Original file line number Diff line number Diff line change
Expand Up @@ -988,7 +988,7 @@ def _get_commands(target: str, flags: str):


# Then, actually query Bazel's compile actions for that configured target
target_statement = f'deps({target})' # TODO we should always be quoting targets when we splice them in. Let's use single quotes like with mnemonic, above. See slightly down in https://bazel.build/query/language#tokens
target_statement = f"deps('{target}')"
compile_commands = [] # TODO simplify loop, especially if we can reduce it to one command per case (see below)? Move warning messages outside?
if file_flags:
file_path = file_flags[0]
Expand Down

0 comments on commit ef33509

Please sign in to comment.