bazelbuild / bazelbuild/bazel

@bazel_tools references missing targets below tools/cpp/runfiles

Open
#15,397 0 comments 0 reactions 0 assignees View on GitHub
help wanted P3 team-OSS type: bug
Dominant language
Java
Stars
25.8k
Forks
4.6k
Avg merge
2d 20h
Merged PRs (30d)
72

Description

### Description of the bug:

The exported version of `@bazel_tools//tools/cpp:srcs` references a label that does not exist.

This causes a cquery to fail:

```
$ bazel cquery @bazel_tools//tools/cpp/...
no such target '@bazel_tools//tools/cpp/runfiles:srcs': target 'srcs' not declared in package 'tools/cpp/runfiles' defined by

Contributor guide

Open the contributing guide

Research direction

Start by comparing tools/cpp/BUILD.tools#L487 with tools/cpp/BUILD#L24 and inspect tools/cpp/runfiles/BUILD#L4. Reproduce the failure with `bazel cquery @bazel_tools//tools/cpp/...`. Done means the exported target no longer references a missing label and the cquery completes successfully.

Written by the indexing model from the issue text.

Assessment

Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.