https://pantsbuild.org/ logo
l

loud-stone-83419

01/13/2021, 6:44 PM
Hi! Is there a way to tell pants to ignore cache for running tests? I see that I can pass flags for specific test runners, not sure if there is a global one
l

loud-stone-83419

01/13/2021, 6:47 PM
thx!
does this work in 1.30?
it doesn't look like it does 😞
w

witty-crayon-22786

01/13/2021, 7:06 PM
@loud-stone-83419: for the v1 test runner, you’d want
--cache-ignore
./pants test --cache-ignore $target
in v1, position matters for that flag:
--cache-ignore
after
test
only ignores the cache for `test`… before
test
would ignore it for the entire run.
👍 1
l

loud-stone-83419

01/13/2021, 10:05 PM
thx!
s

square-oxygen-75288

01/14/2021, 10:02 AM
for v1, we use something like
Copy code
./pants compile path/to/sources:: --cache-ignore=True
4 Views