From 61afb56e8432653dbd692063adadfa3595bb9071 Mon Sep 17 00:00:00 2001 From: Kousik Kumar Date: Tue, 23 Jul 2019 16:16:15 -0400 Subject: [PATCH] Add dist_dir to goma trigger This is done so that prototype tooling can write logs inside the DIST_DIR. Test: I wrote out all the environment variables being passed to goma_ctl.py and the output is https://paste.googleplex.com/6663469954760704. It contains both DIST_DIR and other variables. Change-Id: Ia5c70e58aa1b87db9777c59cf3e5df1c9e20f08c --- ui/build/goma.go | 1 + 1 file changed, 1 insertion(+) diff --git a/ui/build/goma.go b/ui/build/goma.go index ff0b40e6d..ae9b78498 100644 --- a/ui/build/goma.go +++ b/ui/build/goma.go @@ -72,6 +72,7 @@ func startGoma(ctx Context, config Config) { } cmd := Command(ctx, config, "goma_ctl.py ensure_start", gomaCtl, "ensure_start") + cmd.Environment.Set("DIST_DIR", config.DistDir()) if output, err := cmd.CombinedOutput(); err != nil { ctx.Fatalf("goma_ctl.py ensure_start failed with: %v\n%s\n", err, output)