Open dambrosio opened 6 months ago
I've encountered a similar situation. My target doesn't recognize the passed config and failed for missing matching condition.
@dambrosio
It's my problem. According to document, there should be an extra --
before argument for target.
bazel run :refresh_comp_cmds -- --define target=//my_pkg:my_target
^
Creating a ticket based on a recent comment in a past closed ticket.
Was wondering if there is example usage for
refresh_compile_commands
with atargets
select
. As stated in the mentioned comment, I am a Bazel n00b so it might not be possible.Fundamentally I am looking for a way to pass an argument (target package) to the root
refresh_compile_commands
.Something like:
With command line usage of:
bazel run :refresh_comp_cmds --define target=//my_pkg:my_target
.When I try the above I run into the following error:
Please let me know if moving the comment to a ticket was acceptable.
Appreciate the help and cheers!