Bazel Query fails with "no such package 'conditions'"

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • DevProd Build
    • ALL
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The following results in an error message:

      bazel query "rdeps(//..., //src/mongo/db/storage/key_string:key_string)"

      ERROR: Evaluation of query "rdeps(//..., //src/mongo/db/storage/key_string:key_string)" failed: preloading transitive closure failed: no such package 'conditions': BUILD file not found in any of the following directories. Add a BUILD file to a directory to mark it as a package.
      

      In most cases aquery/cquery can be used to work around the issue, but this is fairly unpleasant since most people will reach for query by default

            Assignee:
            Unassigned
            Reporter:
            Zack Winter
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: