abundant-tent-27407
03/12/2024, 8:07 AMbroad-processor-92400
03/12/2024, 9:34 AMabundant-tent-27407
03/12/2024, 9:59 AM:auth
that runs a shell command that updates the auth token for my remote cache (buildbarn). I would like to default to running that each time before other targets, to ensure the auth token is up to date. I thought about various ways to achieve this:
1. Use a Makefile, makes handling dependency easy, but requires writing makefile targets for each pants command I want to run
2. Alias pants to something like ./get_token.sh && pants
. Easy enough but each developer has to set this
3. Do something else in pants if possiblebroad-processor-92400
03/12/2024, 10:03 AMabundant-tent-27407
03/12/2024, 10:05 AMfresh-cat-90827
03/13/2024, 2:38 PM