Hi,
With Bazel 4.0 if I have two cc_library(s) (A->B), but no where do I export any headers. Then I do I expect a warning to say that you haven't got a dependency on that header anymore, or has is the hdrs declaration of a public interface now obsolete?
This is a minimal example:
A\BUILD
```
cc_library(
name="a",
srcs=["final.cpp"],
deps=[
"//b"
]
)
```
A\final.cpp
```
B\BUILD
```
load("@rules_cc//cc:defs.bzl", "cc_library")
cc_library(
name = "b",
srcs = [
"item.cpp",
"item.h",
],
visibility = ["//visibility:public"],
)
```
B/item.h
```
```
B/item.cpp
```
#include "item.h"
```
I expect to get a warning as this is not a declared header, but instead it seems to work fine.
Does bazel now track these files?
Will A be guaranteed to rebuild when you have reproducible builds and the B/B.lib is the same checksum, even if `B/item.h` changes checksum?
Thanks
James