瀏覽代碼

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