Skip to content

Commit

Permalink
Pin com_google_protobuf to 3.17.3
Browse files Browse the repository at this point in the history
The latest version of rules_haskell pins protoc to 3.19.1. However, this
generates code that also requires a more recent version of the Java
proto libraries. This change pins the protoc version at the same version
as the protobuf-java library, see protocolbuffers/protobuf#9236.
  • Loading branch information
aherrmann committed Dec 2, 2021
1 parent fd579d4 commit fee0478
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions deps.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,16 @@ def daml_deps():
patch_args = ["-p1"],
)

if "com_google_protobuf" not in native.existing_rules():
http_archive(
name = "com_google_protobuf",
sha256 = "c6003e1d2e7fefa78a3039f19f383b4f3a61e81be8c19356f85b6461998ad3db",
strip_prefix = "protobuf-3.17.3",
urls = [
"https://github.com/protocolbuffers/protobuf/archive/refs/tags/v3.17.3.tar.gz",
],
)

if "io_grpc_grpc_java" not in native.existing_rules():
http_archive(
name = "io_grpc_grpc_java",
Expand Down

0 comments on commit fee0478

Please sign in to comment.