-
Notifications
You must be signed in to change notification settings - Fork 147
Remove allowlist_include_directories from data #535
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
base: main
Are you sure you want to change the base?
Remove allowlist_include_directories from data #535
Conversation
When very recent versions of bazel, improvements in the merkle tree recommend that instead of passing a huge list of files to the toolchain, you instead pass the root directory of those files once, and then bazel symlinks the entire directory as opposed to every file one by one. In order to do this you must pass a filegroup pointing at only the directory. In this case, if you then also pass all the files, you get conflicts in bazel trying to link the files, and the directory. If you didn't get those conflicts you would still lose the perf benefits. This change makes allowlist_include_directories only affect the cxx_builtin_include_directories field. If you need the directory also in data, you must now also add it to `data`. If you want to continue using the entire list of files, that still works fine.
|
Tests appear to be broken, but LGTM otherwise |
|
Yeah, the tests ensure |
|
On that note, probably deserves a documentation update to clarify any changes in behavior. |
|
updated tests and docs |
|
@armandomontanez friendly ping 🙏🏻 |
|
Our internal CI is complaining that |
|
thanks, updated |
When very recent versions of bazel, improvements in the merkle tree
recommend that instead of passing a huge list of files to the toolchain,
you instead pass the root directory of those files once, and then bazel
symlinks the entire directory as opposed to every file one by one. In
order to do this you must pass a filegroup pointing at only the
directory. In this case, if you then also pass all the files, you get
conflicts in bazel trying to link the files, and the directory. If you
didn't get those conflicts you would still lose the perf benefits.
This change makes allowlist_include_directories only affect the
cxx_builtin_include_directories field. If you need the directory also in
data, you must now also add it to
data. If you want to continue usingthe entire list of files, that still works fine.