summaryrefslogtreecommitdiff
path: root/python/python.go
diff options
context:
space:
mode:
author Chris Parsons <cparsons@google.com> 2022-09-28 14:58:41 -0400
committer Christopher Parsons <cparsons@google.com> 2022-09-28 19:02:51 +0000
commit86dc2c268a0e1e1fbe0d161d349c49c9fa4b10e7 (patch)
tree08ca4f0c883ccd898ff5c73a1fe8f69370bba26f /python/python.go
parentd4961319a934fea7b5b27213f4640cba9a168dcd (diff)
Support main repository prefixing in cquery
This makes mixed builds resilient to a recent backward-incompatbile Bazel feature which explicitly adds the main repository (`@`) prefix to all labels which are stringified by `str(target.label)` in Starlark. This implementation is compatible with both current Bazel and Bazel@HEAD. After a new Bazel release to AOSP, we can clean up this code a little to only support Bazel with this feature active (and that we need not hedge on either Bazel behavior). Bug: 248106697 Test: `m --bazel-mode nothing` with both current Bazel and a new Bazel Change-Id: Id53c8505bb9080d5073c844de7f1ee57ceceae46
Diffstat (limited to 'python/python.go')
0 files changed, 0 insertions, 0 deletions