소스 검색

set cache to tmp dir

Shelikhoo 6 년 전
부모
커밋
969d134681
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      infra/bazel/build.bzl

+ 1 - 0
infra/bazel/build.bzl

@@ -30,6 +30,7 @@ def _go_command(ctx):
     "GOARCH="+ctx.attr.arch,
     #"GOROOT_FINAL=/go",
     "GO111MODULE=on",
+    "GOCACHE=${TMPDIR}/gocache"
   ]
 
   if ctx.attr.mips: # https://github.com/golang/go/issues/27260