[bazel] Commit fully to bzlmod (#9035)

Move pybind11 over, delete the WORKSPACE files, and fix a test which
assumed WORKSPACE support was enabled.

---------

Signed-off-by: Austin Schuh <austin.linux@gmail.com>
This commit is contained in:
Austin Schuh
2026-07-01 22:59:10 -07:00
committed by GitHub
parent ac6aaa0f3c
commit f494ff8c0d
8 changed files with 112 additions and 302 deletions

View File

@@ -11,7 +11,11 @@ using bazel::tools::cpp::runfiles::Runfiles;
std::string LookupPath(std::string path) {
std::string error;
std::unique_ptr<Runfiles> runfiles(Runfiles::CreateForTest(&error));
return runfiles->Rlocation("__main__/" + path);
std::string rpath = runfiles->Rlocation("_main/" + path);
if (rpath.empty()) {
rpath = runfiles->Rlocation("__main__/" + path);
}
return rpath;
}
#else
std::string LookupPath(std::string path) {