numerous-apartment-3919
11/14/2023, 8:44 PMpants command? Maybe there are some best practices I'm missing, but even on my trivial demo repository it can take upwards of 7 seconds to start doing anything (apparently, maybe Im just missing some verbosity flags?)curved-television-6568
11/14/2023, 8:59 PMcurved-television-6568
11/14/2023, 9:00 PMbroad-processor-92400
11/14/2023, 9:55 PMconcurrent or pantsd flags in pants.toml?numerous-apartment-3919
11/14/2023, 9:56 PMpantsdbroad-processor-92400
11/14/2023, 10:01 PMconcurrent flag unfortunately also disables the pants daemon, which means you have to pay the initialisation cost on every start up. If you can remove it, that’ll make subsequent runs much faster.
You can set it for specific long running commands (eg running a server) with PANTS_CONCURRENT=true pants run … or pants --concurrent run ….
It is a bit annoying. If you want a bug to subscribe to, https://github.com/pantsbuild/pants/issues/7654 is it.numerous-apartment-3919
11/14/2023, 10:02 PMnumerous-apartment-3919
11/14/2023, 10:03 PMbroad-processor-92400
11/14/2023, 10:03 PMnumerous-apartment-3919
11/14/2023, 10:31 PMbroad-processor-92400
11/14/2023, 11:26 PM[cli]
run-the-server = "--concurrent run path/to:server"
And then one runs pants run-the-server and it might do the right thing?