External targets cc targets do not add the exec root to include paths #16690
Labels
P2
We'll consider working on this in future. (Assignee optional)
team-ExternalDeps
External dependency handling, remote repositiories, WORKSPACE file.
type: bug
Description of the bug:
I have a reproduction at https://github.com/UebelAndre/bazel_include_repro with steps to reproduce the issue.
Currently C++ targets which have a mutual external dependency fail to compile with an error similar to the following:
After inspecting the subcommands it seems external dependencies do not get any flags which add the execroot to the include path. This then causes failures when building
repo_b
which depends onrepo_c
.What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
Again, I have a reproduction at https://github.com/UebelAndre/bazel_include_repro with steps to reproduce the issue.
An archive can be found below.
Which operating system are you running Bazel on?
Linux, MacOS
What is the output of
bazel info release
?release 5.3.2
If
bazel info release
returnsdevelopment version
or(@non-git)
, tell us how you built Bazel.No response
What's the output of
git remote get-url origin; git rev-parse master; git rev-parse HEAD
?No response
Have you found anything relevant by searching the web?
No response
Any other information, logs, or outputs that you want to share?
No response
The text was updated successfully, but these errors were encountered: