소스 검색

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

fix bazel not set home
Kslr 5 년 전
부모
커밋
46aa2c9e5e
1개의 변경된 파일1개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 3
      infra/bazel/build.bzl

+ 1 - 3
infra/bazel/build.bzl

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