diff --git a/bazel/rules_go.patch b/bazel/rules_go.patch index 1f97864b3a691..4c8f6ec004073 100644 --- a/bazel/rules_go.patch +++ b/bazel/rules_go.patch @@ -1,16 +1,15 @@ diff --git a/go/private/rules/binary.bzl b/go/private/rules/binary.bzl -index 40a17f4d..b9cf18bb 100644 +index 40a17f4d..81f3ed86 100644 --- a/go/private/rules/binary.bzl +++ b/go/private/rules/binary.bzl -@@ -462,8 +462,9 @@ exit /b %GO_EXIT_CODE% +@@ -462,8 +462,8 @@ 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.libs + sdk.headers + sdk.tools + ctx.files.srcs + [sdk.go, bat], ++ executable = bat.path.replace("/", "\\"), ++ inputs = sdk.libs + sdk.headers + sdk.tools + ctx.files.srcs + [sdk.go], outputs = [out, gotmp], mnemonic = "GoToolchainBinaryBuild", )