ancient-vegetable-10556
03/29/2023, 5:48 PMrunnable_dependencies as implemented over in adhoc_process_support resolves the envvars needed to run a target; so the infrastructure for embedding a JVM is there in runnable_dependencies. Getting runnable_dependencies into more places would solve Tal’s problemancient-vegetable-10556
03/29/2023, 5:50 PMbitter-ability-32190
03/29/2023, 5:52 PMbitter-ability-32190
03/29/2023, 5:52 PMpytest_runner for instance expects env vars coming from the transitive targetsancient-vegetable-10556
03/29/2023, 5:52 PMrunnable_dependencies only works in adhoc_tool and shell_commandbitter-ability-32190
03/29/2023, 5:53 PMancient-vegetable-10556
03/29/2023, 5:55 PMadhoc_tool already: https://github.com/pantsbuild/pants/blob/main/src/python/pants/backend/adhoc/adhoc_tool.py#L137-L167
It’s just that only runnable_dependencies has the support for resolving those envvarsancient-vegetable-10556
03/29/2023, 5:56 PMrunnable_dependencies is not transitively resolvedbitter-ability-32190
03/29/2023, 5:56 PMbitter-ability-32190
03/29/2023, 5:56 PMancient-vegetable-10556
03/29/2023, 5:57 PMexperimental packageancient-vegetable-10556
03/29/2023, 5:58 PMyarn is implemented as a script with a #!/usr/bin/env node)