bazelbuild / bazelbuild/bazel

Bazel@HEAD: bazel cquery no longer includes some tools dependencies

Open
#14,847 13 comments 0 reactions 1 assignee Claimed by @buildbreaker2021 View on GitHub
P1 team-Rules-CPP type: bug
Dominant language
Java
Stars
25.8k
Forks
4.6k
Avg merge
2d 20h
Merged PRs (30d)
72

Description

### Description of the problem / feature request:

The output of bazel cquery generated by Bazel@HEAD is missing some tools dependencies.

### Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.

```
git clone https://github.com/tensorflow/tensorflow.git
cd tensorflow
export USE_BAZEL_VERSION=last_green
bazelisk cquery --experimental_cc_shared_library "attr('licenses', 'notice', deps(@libjpeg_turbo//:simd_x86_64_assemblage23))" --keep_going
```

The output is missing target `@nasm//:nasm` which should be a dependency of the target:
https://cs.opensource.google/tensorflow/tensorflow/+/master:third_party/jpeg/jpeg.BUILD;l=312

### What operating system are you running Bazel on?

Linux

### Bazel version

Bazel@HEAD

### Any other information, logs, or outputs that you want to share?

A git bisect points https://github.com/bazelbuild/bazel/commit/464f5d560bd95c49e8465c66b6884b0810671961 as the culprit. Testing with commits prior to it outputs `@nasm//:nasm` correctly.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.