-
Notifications
You must be signed in to change notification settings - Fork 4k
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. |
And fix incompatible changes: * cc_binary no longer appends ".exe" on Windows * labels for aspects start with "@//" indicating the default repository * strip_include_prefix usage of "" migrated to "." - bazelbuild/bazel#17039 * removes --bes_header from bazelrc - Bazel uses an updated google auth library that uses the quota project set in the application default credentials Bug: 266863277 Test: n/a Change-Id: I6b1b8495a319652cfa12dc4c84da19a7b6ff1346 Former-commit-id: 610b1d46e31165a7db4facb001946a36fe795e4d
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: