Skip to content

Commit ef33509

Browse files
committed
refresh.template.py: quoting target_statement
1 parent 89f583a commit ef33509

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

refresh.template.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -988,7 +988,7 @@ def _get_commands(target: str, flags: str):
988988

989989

990990
# Then, actually query Bazel's compile actions for that configured target
991-
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
991+
target_statement = f"deps('{target}')"
992992
compile_commands = [] # TODO simplify loop, especially if we can reduce it to one command per case (see below)? Move warning messages outside?
993993
if file_flags:
994994
file_path = file_flags[0]

0 commit comments

Comments
 (0)