cc_grpc_library 由于缺少强制性 "files_to_run" 提供程序,bazel 0.5.1 失败
cc_grpc_library for bazel 0.5.1 fails due to mandatory "files_to_run" provider missing
我正在尝试构建 grpc/bazel/cc_grpc_library.bzl 中定义的 cc_grpc_library,如下所示:
cc_grpc_library(
name = "test",
srcs = [ "test.proto" ],
deps = [],
proto_only = False,
well_known_protos = "@com_google_protobuf//:well_known_protos",
generate_mock = False,
use_external = True)
但由于
而失败
'@grpc//:grpc_cpp_plugin' does not have mandatory provider 'files_to_run'.
我正在使用 bazel 0.5.1 和来自 grpc 存储库的最新版本。没有对 bazel 或 grpc 进行本地修改。
还要注意,bazel 0.4.5 工作正常。
哇,调试真有趣 :) 我想你可以为此提交一个问题,这是一个常见的错误。所以这适用于 bazel 0.4.5,不适用于 bazel 0.5.0 和 0.5.1,它再次适用于 bazel@HEAD。它已由 this commit, then broken, and then fixed "by accident" by this commit.
修复
现在 bazel@HEAD 不会构建项目,但它似乎是项目本身的错误,不再是 bazel 错误。
我正在尝试构建 grpc/bazel/cc_grpc_library.bzl 中定义的 cc_grpc_library,如下所示:
cc_grpc_library(
name = "test",
srcs = [ "test.proto" ],
deps = [],
proto_only = False,
well_known_protos = "@com_google_protobuf//:well_known_protos",
generate_mock = False,
use_external = True)
但由于
而失败'@grpc//:grpc_cpp_plugin' does not have mandatory provider 'files_to_run'.
我正在使用 bazel 0.5.1 和来自 grpc 存储库的最新版本。没有对 bazel 或 grpc 进行本地修改。
还要注意,bazel 0.4.5 工作正常。
哇,调试真有趣 :) 我想你可以为此提交一个问题,这是一个常见的错误。所以这适用于 bazel 0.4.5,不适用于 bazel 0.5.0 和 0.5.1,它再次适用于 bazel@HEAD。它已由 this commit, then broken, and then fixed "by accident" by this commit.
修复现在 bazel@HEAD 不会构建项目,但它似乎是项目本身的错误,不再是 bazel 错误。