nutritious-minister-3808
09/21/2022, 7:23 PM.pants.d/run-tracker/*
directory? Or just disable logging to files altogether?
For context, we are running pantsbuild along with another tool(skaffold) which results in pants goals being called in a loop, sometimes many times a second. This results in a proliferation of the .pants.d/run-tracker/pants_run_YYYY_MM_DD_MM_SS_SHA
folders which are not really necessary. Since the .pants.d
folder is required to be in the repository this is causing issues with some IDEs where file watching is not as configurable.happy-kitchen-89482
09/21/2022, 7:33 PMenough-analyst-54434
09/21/2022, 7:33 PMhappy-kitchen-89482
09/21/2022, 7:34 PMnutritious-minister-3808
09/21/2022, 9:21 PMhappy-kitchen-89482
09/21/2022, 10:12 PMpants run
and pants repl
create their workdirs, which do have to be in the reponutritious-minister-3808
09/21/2022, 10:19 PM./pants run misc:script_name
15:05:29.16 [INFO] Initialization options changed: reinitializing scheduler...
15:05:29.85 [INFO] Scheduler initialized.
15:05:33.01 [INFO] Starting: Building 1 requirement for script_name.pex from the python/pants.lock resolve: jinja2==3.1.2
15:05:34.47 [INFO] Completed: Building 1 requirement for script_name.pex from the python/pants.lock resolve: jinja2==3.1.2
15:05:34.47 [INFO] Starting: Building local_dists.pex
15:05:35.09 [INFO] Completed: Building local_dists.pex
15:05:35.10 [ERROR] 1 Exception encountered:
ValueError: '/home/dev/.pants.d/tmpxp7xc43j' is not in the subpath of '/home/dev/<repo_name>' OR one path is relative and the other is absolute.
happy-kitchen-89482
09/21/2022, 10:40 PMnutritious-minister-3808
09/21/2022, 10:56 PM./pants package
so we can afford to set the PANTS_WORKDIR
env var inside that script and redirect it to somewhere in /tmp/
. For everything else, the .pants.d
directory can stay in the buildroot as needed.happy-kitchen-89482
09/21/2022, 11:20 PM