Skip to content

Commit

Permalink
try different patch
Browse files Browse the repository at this point in the history
  • Loading branch information
markdroth committed Oct 14, 2024
1 parent 91df016 commit b422ddb
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions bazel/rules_go.patch
Original file line number Diff line number Diff line change
@@ -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",
)

0 comments on commit b422ddb

Please sign in to comment.