mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-04 03:11:43 +00:00
[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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user