From b55fceba682bbf7ce7b8e25e47c64432ae959e16 Mon Sep 17 00:00:00 2001 From: Kslr Date: Wed, 3 Jun 2020 09:58:15 +0800 Subject: [PATCH] Revert "fix bazel not set home" --- infra/bazel/build.bzl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/infra/bazel/build.bzl b/infra/bazel/build.bzl index 11267e71..31217570 100644 --- a/infra/bazel/build.bzl +++ b/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],