From 09295f7ef6a210a48b17e0c93ec9dcedaf6f6e90 Mon Sep 17 00:00:00 2001 From: Kslr Date: Tue, 2 Jun 2020 04:19:08 +0800 Subject: [PATCH] fix bazel not set home https://github.com/v2ray/discussion/issues/714#issuecomment-637034754 --- infra/bazel/build.bzl | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/infra/bazel/build.bzl b/infra/bazel/build.bzl index 312175709..11267e716 100644 --- a/infra/bazel/build.bzl +++ b/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],