-
Type:
Task
-
Resolution: Fixed
-
Priority:
Major - P3
-
Affects Version/s: None
-
Component/s: Bazel
-
None
-
Server Programmability
-
Fully Compatible
-
Programmability 2026-08-04
-
None
-
None
-
None
-
None
-
None
-
None
-
None
`rust_test` targets generated with `crate = ":lib"` compile the library's sources (including `#[cfg(test)]` modules) but depend on the library rule rather than on the individual source files. `same_pkg_direct_rdeps` on a changed source file therefore missed them, so `bazel run lint` (changed-files mode) skipped clippy for the test target even though CI's `//...` run caught it.
The owner-target query now unions the direct owners with same-package rules that have a `crate` attribute depending on those owners.