I try to query deps with a custom flags. For example,
bazel query --define=using_cuda=true "deps(@org_tensorflow//tensorflow/core:lib)"
Bazel complained:
ERROR: Unrecognized option: --define=using_cuda=true
How could I pass a custom flag to bazel query command?
bazel querydoesn't support the--defineflag because the command doesn't use it. Instead, usebazel cqueryinstead, which stands for "configurable query".