mirror of
https://github.com/php-win-ext/grpc.git
synced 2026-03-24 17:12:19 +01:00
This eliminates the need for the `grpc_cc_proto_library` bazel BUILD rule introduced in #37863. To make this work, I had to upgrade several bazel dependencies and apply a patch to rules_go to work around https://github.com/bazelbuild/bazel/issues/11636. Closes #37902 PiperOrigin-RevId: 685868647
20 lines
858 B
Diff
20 lines
858 B
Diff
# This patch works around a problem with Windows RBE described in
|
|
# https://github.com/bazelbuild/bazel/issues/11636. It can be removed
|
|
# once that issue is resolved.
|
|
diff --git a/go/private/rules/binary.bzl b/go/private/rules/binary.bzl
|
|
index 40a17f4d..2741ad71 100644
|
|
--- a/go/private/rules/binary.bzl
|
|
+++ b/go/private/rules/binary.bzl
|
|
@@ -462,8 +462,9 @@ exit /b %GO_EXIT_CODE%
|
|
content = cmd,
|
|
)
|
|
ctx.actions.run(
|
|
- executable = bat,
|
|
- inputs = sdk.headers + sdk.tools + sdk.srcs + ctx.files.srcs + [sdk.go],
|
|
+ executable = "cmd.exe",
|
|
+ arguments = ["/S", "/C", bat.path.replace("/", "\\")],
|
|
+ inputs = sdk.headers + sdk.tools + sdk.srcs + ctx.files.srcs + [sdk.go, bat],
|
|
outputs = [out, gotmp],
|
|
mnemonic = "GoToolchainBinaryBuild",
|
|
)
|