Always propagate some environment variables to RBE

Always propagate LANG, LC_MESSAGES and PYTHONDONTWRITEBYTECODE
to RBE to get more consistent behavior between local actions and
RBE.

Bug: 182415460
Bug: 190593001
Test: treehugger
Change-Id: I726e6f02fd3ef77e158baf6fde77ffb7247a1375
Merged-In: I726e6f02fd3ef77e158baf6fde77ffb7247a1375
This commit is contained in:
Colin Cross
2021-06-09 12:48:53 -07:00
committed by Anton Hansson
parent dce0713739
commit fb618c387a
3 changed files with 17 additions and 12 deletions

View File

@@ -361,10 +361,7 @@ func (l *linter) lint(ctx android.ModuleContext) {
Labels: map[string]string{"type": "tool", "name": "lint"},
ExecStrategy: lintRBEExecStrategy(ctx),
ToolchainInputs: []string{config.JavaCmd(ctx).String()},
EnvironmentVariables: []string{
"LANG",
},
Platform: map[string]string{remoteexec.PoolKey: pool},
Platform: map[string]string{remoteexec.PoolKey: pool},
})
}