-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
can no longer use include_prefix = "" in cc_library with Bazel 6.0.0 #17039
Comments
@bazel-io flag |
|
@carpenterjc Could you check whether making the following programmatic change is sufficient to resolve the build failure in your real-world repo?
If that's the extent of the migration required, having it be a minor incompatible change may be better than carrying the subtle |
Yes, so if have |
Will you get the edge case where the |
/cc @buildbreaker2021 , can you please take a look? My current assessment is that this is probably a minor incompatible change with workarounds, so probably shouldn't block the 6.0 release. If there is something we should fix, we can cherry pick it into 6.1. WDYT? |
I agree with Fabian here and I do not see the reason to add more tech debt to fix this. Like adding a hack in cc_library to change "" to ".", for example. The buildozer workaround described here is simple enough. |
Description of the bug:
We use
include_prefix
in our C++ assets for legacy component laytout. This has stopped working in bazel 6.0.0, although the virtual includes directory is produced.If you use
include_prefix = "x"
and#include "x/blah.h"
it works.If you use
includes = ["."]
and#include "blah.h"
it works.If you use
include_prefix = ""
and#include "blah.h"
it fails.What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
Which operating system are you running Bazel on?
windows
What is the output of
bazel info release
?release 6.0.0rc5
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?
Bazel 6.0.0 output fails...
Working with Bazel 5.3.2
Virtual includes are created, but don't seem to work.
The text was updated successfully, but these errors were encountered: