rules_proto_grpc icon indicating copy to clipboard operation
rules_proto_grpc copied to clipboard

Version 5.3.0 gives 404 error downloading protoc_gen_grpc_web_plugin_darwin_arm64

Open normmcgarry opened this issue 4 months ago • 0 comments

Issue Description

The path is wrong in modules/js/module_extensions.bzl

Due to this line

platform.replace("arm64", "aarch_64"),

This should be:

platform.replace("arm64", "aarch64"),

In the grpc-web releases, protoc-gen-grpc-web-1.5.0-darwin-aarch64 which doesn't include the underscore.

This most likely occurred because the protobuf-javascript plugin DOES use the the underscore in their naming: aarch_64.

I'll submit a PR, but it'd be awesome if we could quickly get this updated in a new release. I'd love to use it.

Log Output

When trying to use this new release on a M1 Macbook Pro, I get the following:


6e1b699f6be4c0/external/rules_proto_grpc_js++download_plugins+protoc_gen_grpc_web_plugin_darwin_arm64/file/downloaded: GET returned 404 Not Found
ERROR: no such package '@@rules_proto_grpc_js++download_plugins+protoc_gen_grpc_web_plugin_darwin_arm64//file': java.io.IOException: Error downloading [https://github.com/grpc/grpc-web/releases/download/1.5.0/protoc-gen-grpc-web-1.5.0-darwin-aarch_64] to /private/var/tmp/_bazel_nmcgarry/11a193b9da6411f02e6e1b699f6be4c0/external/rules_proto_grpc_js++download_plugins+protoc_gen_grpc_web_plugin_darwin_arm64/file/downloaded: GET returned 404 Not Found

rules_proto_grpc Version

5.3.0

Bazel Version

8.3.0rc2

OS

MacOS 15.5 (24F74)

Link to Demo Repo

No response

MODULE.bazel or WORKSPACE Content


BUILD Content


Proto Content


Any Other Content


normmcgarry avatar Jun 19 '25 18:06 normmcgarry