nutritious-hair-72580
04/17/2024, 4:41 AMbroad-processor-92400
04/17/2024, 5:05 AMpants.toml setting as you observe, but I think the runnable can implicitly set some of its own env vars, and so extra_env_vars is augmenting those.
Breadcrumbs from my code-exploration:
• tool_runner.extra_env is those from the runnable https://github.com/pantsbuild/pants/blob/d2a9a46e8caf2293759183d10488aa24d3be364a/src/python/pants/backend/adhoc/adhoc_tool.py#L93-L94
• using a python_source as a runnable is an example that sets env vars: https://github.com/pantsbuild/pants/blob/d2a9a46e8caf2293759183d10488aa24d3be364a/src/python/pants/backend/python/goals/run_helper.py#L118-L121broad-processor-92400
04/17/2024, 5:06 AMnutritious-hair-72580
04/17/2024, 5:07 AM