Sfoglia il codice sorgente

Merge pull request #9 from v2fly/revert-8-kslr-patch-1

Revert "fix bazel not set home"
Kslr 5 anni fa
parent
commit
5d616dcc75
1 ha cambiato i file con 3 aggiunte e 1 eliminazioni
  1. 3 1
      infra/bazel/build.bzl

+ 3 - 1
infra/bazel/build.bzl

@@ -41,7 +41,9 @@ def _go_command(ctx):
   if ctx.attr.arm:
     envs+=["GOARM="+ctx.attr.arm]
 
-  command = " ".join(envs) + " " + command
+  switchToPwd="cd ${SPWD} && "
+
+  command = switchToPwd + " ".join(envs) + " " + command
 
   ctx.actions.run_shell(
     outputs = [output_file],