https://pantsbuild.org/ logo
#general
Title
# general
c

cold-soccer-63228

05/15/2023, 3:42 PM
By default, does running
./pants fix
run formatters that would’ve been invoked via
./pants fmt
? Another way to ask the question: if I first run
./pants fix
, will running
./pants fmt
afterwards be a no-op?
1
b

bitter-ability-32190

05/15/2023, 3:46 PM
Yup!
fix
is a superset of
fmt
And it does the right ordering (all fixers before formatters)
As far as the no-op question: Not a no-op per se. If one tool does make change, as does a second one later, the cache entry for the first tool run is no longer "hot". So it would re-run on a subsequent run.
c

cold-soccer-63228

05/15/2023, 3:50 PM
This answers my question 🙂 thanks!
2 Views