Skip to content

go-protoc-bin failed: error executing GoProtocGen command #4317

@johanbrandhorst

Description

@johanbrandhorst

Hi! I'm the maintainer of the grpc-gateway. It seems that something in v0.54.0 broke our protobuf generation. This auto-created PR is failing our bazel build. The error is:

 ERROR: /__w/grpc-gateway/grpc-gateway/runtime/internal/examplepb/BUILD.bazel:29:17: Generating into bazel-out/k8-fastbuild/bin/runtime/internal/examplepb/examplepb_go_proto_/github.com/grpc-ecosystem/grpc-gateway/v2/runtime/internal/examplepb failed: (Exit 1): go-protoc-bin failed: error executing GoProtocGen command (from target //runtime/internal/examplepb:examplepb_go_proto) bazel-out/k8-opt-exec-ST-d57f47055a04/bin/external/rules_go+/go/tools/builders/go-protoc/go-protoc-bin -protoc bazel-out/k8-opt-exec-ST-d57f47055a04/bin/external/protobuf+/protoc -importpath ... (remaining 51 arguments skipped)

Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
2025/04/15 16:46:48 file "bazel-out/k8-fastbuild/bin/runtime/internal/examplepb/examplepb_go_proto_/github.com/grpc-ecosystem/grpc-gateway/v2/runtime/internal/examplepb/example_grpc.pb.go" expected from plugin "bazel-out/k8-opt-exec-ST-d57f47055a04/bin/go_grpc_reset_plugin_/protoc-gen-go-grpc" but not created
ERROR: /__w/grpc-gateway/grpc-gateway/runtime/internal/examplepb/BUILD.bazel:29:17 GoCompilePkg runtime/internal/examplepb/examplepb_go_proto.a failed: (Exit 1): go-protoc-bin failed: error executing GoProtocGen command (from target //runtime/internal/examplepb:examplepb_go_proto) bazel-out/k8-opt-exec-ST-d57f47055a04/bin/external/rules_go+/go/tools/builders/go-protoc/go-protoc-bin -protoc bazel-out/k8-opt-exec-ST-d57f47055a04/bin/external/protobuf+/protoc -importpath ... (remaining 51 arguments skipped)

I found this a bit hard to parse, but I think the salient part is

go-protoc-bin failed: error executing GoProtocGen command

It doesn't say what exactly failed, though, so not sure how it broke. Here's the full build log: https://github.com/grpc-ecosystem/grpc-gateway/actions/runs/14474740731/job/40597503943?pr=5472. The command was

$ bazel test //...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions