Skip to content

Commit

Permalink
Upgrade Protobuf to v3.13.0 (#1746)
Browse files Browse the repository at this point in the history
This makes cartographer compatible with
`--incompatible_blacklisted_protos_requires_proto_info`.
See bazelbuild/bazel#11694

Signed-off-by: Yannic Bonenberger <contact@yannic-bonenberger.com>
  • Loading branch information
Yannic committed Sep 14, 2020
1 parent 2137b84 commit f2035b0
Showing 1 changed file with 19 additions and 6 deletions.
25 changes: 19 additions & 6 deletions bazel/repositories.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -206,19 +206,21 @@ def cartographer_repositories():
_maybe(
http_archive,
name = "bazel_skylib",
strip_prefix = "bazel-skylib-67215655bf6ce349b2b88ae4f5945a706f8ce959",
urls = ["https://github.com/bazelbuild/bazel-skylib/archive/67215655bf6ce349b2b88ae4f5945a706f8ce959.tar.gz"],
sha256 = "e5d90f0ec952883d56747b7604e2a15ee36e288bb556c3d0ed33e818a4d971f2",
strip_prefix = "bazel-skylib-1.0.2",
urls = ["https://github.com/bazelbuild/bazel-skylib/archive/1.0.2.tar.gz"],
)

_maybe(
http_archive,
name = "com_google_protobuf",
sha256 = "f1748989842b46fa208b2a6e4e2785133cfcc3e4d43c17fecb023733f0f5443f",
strip_prefix = "protobuf-3.7.1",
sha256 = "1c744a6a1f2c901e68c5521bc275e22bdc66256eeb605c2781923365b7087e5f",
strip_prefix = "protobuf-3.13.0",
urls = [
"https://mirror.bazel.build/github.com/google/protobuf/archive/v3.7.1.tar.gz",
"https://github.com/google/protobuf/archive/v3.7.1.tar.gz",
"https://mirror.bazel.build/github.com/google/protobuf/archive/v3.13.0.zip",
"https://github.com/google/protobuf/archive/v3.13.0.zip",
],
repo_mapping = {"@zlib": "@net_zlib_zlib"},
)

_maybe(
Expand Down Expand Up @@ -272,6 +274,17 @@ def cartographer_repositories():
urls = ["https://github.com/abseil/abseil-cpp/archive/5441bbe1db5d0f2ca24b5b60166367b0966790af.tar.gz"],
)

_maybe(
http_archive,
name = "rules_python",
sha256 = "e5470e92a18aa51830db99a4d9c492cc613761d5bdb7131c04bd92b9834380f6",
strip_prefix = "rules_python-4b84ad270387a7c439ebdccfd530e2339601ef27",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/rules_python/archive/4b84ad270387a7c439ebdccfd530e2339601ef27.tar.gz",
"https://github.com/bazelbuild/rules_python/archive/4b84ad270387a7c439ebdccfd530e2339601ef27.tar.gz",
],
)

# TODO(rodrigoq): remove these binds once grpc#14140 has been merged, as well
# as removing `use_external` in cartographer_grpc/BUILD.bazel.
# https://github.com/grpc/grpc/pull/14140
Expand Down

0 comments on commit f2035b0

Please sign in to comment.