pubref / rules_proto

Moved to https://github.com/stackb/rules_proto
3 stars 8 forks source link

fix checksum of com_google_protobuf #11

Closed mattnworb closed 5 years ago

mattnworb commented 6 years ago

If I have the following in my WORKSPACE:

RULES_PROTO_VERSION = "f493ce70027f353cd6964339018163207393ba93"
RULES_PROTO_SHA256 = "8acbaadfc2fdef0fb52bacbf8919b2cb9db44dd1485d1b6ceacdfb7d56b1af7d"

http_archive(
    name = "org_pubref_rules_proto",
    urls = ["https://github.com/pubref/rules_proto/archive/%s.tar.gz" % RULES_PROTO_VERSION],
    sha256 = RULES_PROTO_SHA256,
    strip_prefix = "rules_proto-" + RULES_PROTO_VERSION,
)
load("@org_pubref_rules_proto//python:deps.bzl", "python_grpc_library")
python_grpc_library()

Then I get:

ERROR: Analysis of target '//git_cloner_job:git_cloner_job' failed; build aborted: no such package '@com_google_protobuf//': java.io.IOException: Error downloading [https://mirror.bazel.build/github.com/google/protobuf/archive/48cb18e5c419ddd23d9badcfe4e9df7bde1979b2.tar.gz, https://github.com/google/protobuf/archive/48cb18e5c419ddd23d9badcfe4e9df7bde1979b2.tar.gz] to /private/var/tmp/_bazel_mattbrown/bfe666b0005bc57aec624d5b94b26875/external/com_google_protobuf/48cb18e5c419ddd23d9badcfe4e9df7bde1979b2.tar.gz: Checksum was f5a35e17fb07f3b13517264cd17a089636fcbb2912f9df7bef7414058969a8d2 but wanted 013cc34f3c51c0f87e059a12ea203087a7a15dca2e453295345e1d02e2b9634c

This is overridable by having this in my WORKSPACE:

python_grpc_library(com_google_protobuf_sha256='f5a35e17fb07f3b13517264cd17a089636fcbb2912f9df7bef7414058969a8d2')

but seems like it should be fixed here anyway.

pcj commented 6 years ago

Hey @mattnworb I've actually migrated the rules to a different organization. Sorry for all the switching around here, I need to close down this repo or point it to this new one. Can you check if the sha256 is causing an issue there? Somewhat surprising that the sha256 is different for you.

https://github.com/stackb/rules_proto