Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0903e89f authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Print both the implicit and explicit environment variables when running Bazel."

parents 69e92306 72f72b42
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -169,8 +169,11 @@ func runBazel(ctx Context, config Config) {
		fmt.Fprintf(bazelEnvStringBuffer, "%s=%s ", k, v)
	}

	// Print the full command line (including environment variables) for debugging purposes.
	ctx.Println("Bazel command line: " + bazelEnvStringBuffer.String() + cmd.Cmd.String() + "\n")
	// Print the implicit command line
	ctx.Println("Bazel implicit command line: " + strings.Join(cmd.Environment.Environ(), " ") + " " + cmd.Cmd.String() + "\n")

	// Print the explicit command line too
	ctx.Println("Bazel explicit command line: " + bazelEnvStringBuffer.String() + cmd.Cmd.String() + "\n")

	// Execute the build command.
	cmd.RunAndStreamOrFatal()