From 4e88859af01376b9977bcc03174c182353c172d4 Mon Sep 17 00:00:00 2001 From: Kousik Kumar Date: Wed, 1 Sep 2021 21:47:02 +0000 Subject: [PATCH] Revert "Load env variables before c.config()" This reverts commit 062b01150268a75aad27693bbf29416b4da651d5. Reason for revert: This change is accidentally opting in a bunch of people into RBE because we aren't respecting USE_RBE variable in rvc-dev branch (possibly missing cherry-pick of some earlier fix). Merged-In: I416e8da75f84aa2b53995f525cf50501488dc972 Change-Id: Ic678b63b165deb3ac4ec3d3c5cbc166621d8eec3 --- cmd/soong_ui/main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/soong_ui/main.go b/cmd/soong_ui/main.go index ffbe7de4f..8453413c7 100644 --- a/cmd/soong_ui/main.go +++ b/cmd/soong_ui/main.go @@ -196,12 +196,13 @@ func main() { Status: stat, }} + config := c.config(buildCtx, args...) + if err := loadEnvConfig(); err != nil { fmt.Fprintf(os.Stderr, "failed to parse env config files: %v", err) os.Exit(1) } - config := c.config(buildCtx, args...) build.SetupOutDir(buildCtx, config)