Pin pybind11_bazel to the same version currently used for pybind11_protobuf.

Leave it for later to resolve the `ubuntu-latest bazel` failure:

* https://github.com/pybind/pybind11_bazel/issues/94

```
ERROR: /home/runner/work/pybind11_abseil/pybind11_abseil/pybind11_abseil/tests/BUILD:92:17: Linking pybind11_abseil/tests/missing_import.so failed: (Exit 1): gcc failed: error executing CppLink command (from target //pybind11_abseil/tests:missing_import.so) /usr/bin/gcc @bazel-out/k8-fastbuild/bin/pybind11_abseil/tests/missing_import.so-2.params

Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
/usr/bin/ld.gold: undefs: unknown -z option
```

PiperOrigin-RevId: 659560021
This commit is contained in:
Ralf W. Grosse-Kunstleve
2024-08-05 08:16:22 -07:00
committed by Copybara-Service
parent 28db3c692d
commit d25d7b3f3a
2 changed files with 8 additions and 17 deletions

View File

@@ -29,19 +29,9 @@ bazel_dep(
version = "0.0.8"
)
http_archive = use_repo_rule("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "pybind11_bazel",
strip_prefix = "pybind11_bazel-master",
urls = ["https://github.com/pybind/pybind11_bazel/archive/refs/heads/master.tar.gz"],
)
http_archive(
name = "pybind11",
build_file = "@pybind11_bazel//:pybind11-BUILD.bazel",
strip_prefix = "pybind11-master",
urls = ["https://github.com/pybind/pybind11/archive/refs/heads/master.tar.gz"],
bazel_dep(
name = "pybind11_bazel",
version = "2.11.1.bzl.2",
)
#### DEV ONLY DEPENDENCIES BELOW HERE ####