Skip to content

Commit

Permalink
Fix build errors for bazel 4.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
codergs90 committed Feb 7, 2021
1 parent c8f06c3 commit 3e10bdd
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ Pre-requisites

[Bazel Install](https://docs.bazel.build/versions/master/install.html)

Test with bazel 4.0.0
```
bazel build src/hello_world/cpp:all
bazel test src/hello_world/cpp:all
Expand Down
25 changes: 12 additions & 13 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -72,38 +72,37 @@ http_archive(
sha256 = "94c634d499558a76fa649edb13721dce6e98fb1e7018dfaeba3cd7a083945e91",
)

#
# bazel 4.0.0 breaking fixes - https://github.com/bazelbuild/bazel/issues/12887
# Protobuf Rules for bazel - Commit
#
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
name = "rules_proto",
sha256 = "602e7161d9195e50246177e7c55b2f39950a9cf7366f74ed5f22fd45750cd208",
strip_prefix = "rules_proto-97d8af4dc474595af3900dd85cb3a29ad28cc313",
sha256 = "96cfb2191f8b383d5470a57361745565510e7389c01f9be1a64db2e792901c3b",
strip_prefix = "rules_proto-cfdc2fa31879c0aebe31ce7702b1a9c8a4be02d2",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/rules_proto/archive/97d8af4dc474595af3900dd85cb3a29ad28cc313.tar.gz",
"https://github.com/bazelbuild/rules_proto/archive/97d8af4dc474595af3900dd85cb3a29ad28cc313.tar.gz",
"https://github.com/bazelbuild/rules_proto/archive/cfdc2fa31879c0aebe31ce7702b1a9c8a4be02d2.zip",
],
)
load("@rules_proto//proto:repositories.bzl", "rules_proto_dependencies", "rules_proto_toolchains")
rules_proto_dependencies()
rules_proto_toolchains()

#
# gRPC C++ - Commit cb81fe0dfaa424eb50de26fb7c904a27a78c3f76
# gRPC C++ - Commit 257d0045ab958eb767a3591c88e9d0c2bdf4b916
#
http_archive(
name = "com_github_grpc_grpc",
urls = [
"https://github.com/grpc/grpc/archive/v1.28.1.zip",
],
patch_args = ["-p1"],
patches = [
"//third_party/grpc:grpc_1_28_1.patch",
"https://github.com/grpc/grpc/archive/v1.35.0.zip",
],
strip_prefix = "grpc-1.28.1",
sha256 = "b0d3b876d85e4e4375aa211a52a33b7e8ca9f9d6d97a60c3c844070a700f0ea3",
#patch_args = ["-p1"],
#patches = [
# "//third_party/grpc:grpc_1_28_1.patch",
#],
strip_prefix = "grpc-1.35.0",
sha256 = "3c432b6e3ba5eaf8c2593f4e6f61eaf363463eb533557a98a9a9adafc5e0e625",
)

load("@com_github_grpc_grpc//bazel:grpc_deps.bzl", "grpc_deps")
Expand Down

0 comments on commit 3e10bdd

Please sign in to comment.