Explorar o código

fix gocache for 1.12

Darien Raymond %!s(int64=6) %!d(string=hai) anos
pai
achega
3c9fe03ee2
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      infra/bazel/build.bzl

+ 2 - 1
infra/bazel/build.bzl

@@ -28,7 +28,8 @@ def _go_command(ctx):
     "CGO_ENABLED=0",
     "GOOS="+ctx.attr.os,
     "GOARCH="+ctx.attr.arch,
-    "GOROOT_FINAL=/go"
+    "GOROOT_FINAL=/go",
+    "GOCACHE=@D",
   ]
   
   if ctx.attr.mips: # https://github.com/golang/go/issues/27260