-
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
[7.4.0] Fix inconsistent virtual include paths #23221
Milestone
Comments
The branch, release-7.4.0, may not exist. Please retry the cherry-pick after the branch is created. |
Cherry-pick was attempted but there were merge conflicts in the following file(s). Please resolve manually.
cc: @bazelbuild/triage |
github-merge-queue bot
pushed a commit
that referenced
this issue
Sep 19, 2024
So far only the generated header in the virtual includes is tested but the Include path pointing to that directory isnt This is a testcase to reproduce the suspected error reported here: - #23061 Assuming that the location of the file is asserted: ```Java assertThat(artifactsToStrings(ccInfo.getCcCompilationContext().getDirectPublicHdrs())) .contains("bin third_party/bar/_virtual_includes/starlark_lib_suffix/starlark_lib.h"); ``` Adding a testcase for the include path seems reasonable. A local run of the testcase shows the error: ``` 1) testStripIncludePrefixIncludePath(com.google.devtools.build.lib.rules.cpp.StarlarkCcCommonTest) value of: getIncludeDirs().onlyElement() expected: bazel-out/k8-fastbuild/bin/third_party/bar/_virtual_includes/starlark_lib_suffix but was : bazel-out/k8-fastbuild/bin/third_party/bar/_virtual_includes/starlark_lib at com.google.devtools.build.lib.rules.cpp.StarlarkCcCommonTest.testStripIncludePrefixIncludePath(StarlarkCcCommonTest.java:5902) FAILURES!!! Tests run: 73, Failures: 1 ``` The change in behaviour was introduced in 7e0df68#diff-403c46ec3075b8e9e6d490ce955db88dae2d457b8046608884039b18b10ab6ccR774 Fixes: #23061 Closes #23071. PiperOrigin-RevId: 660681269 Change-Id: Ia3f8a8a6cf8bf0e093416a247e348e6de6719584 Closes #23221 Co-authored-by: FaBrand <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Forked from #23071
The text was updated successfully, but these errors were encountered: