Hi guys, what’s the difference between `./pants ta...
# general
a
Hi guys, what’s the difference between
./pants tailor --check update-build-files --check
and
./pants tailor --check
?
h
Hi.
update-build-files
formats BUILD files and also checks for deprecations that can be safely fixed, like renaming target fields @bitter-ability-32190 has been doing great work to get rid of
update-build-files
in favor of the
fmt
and new
fix
goals.
fmt
will run Black or Yapf on the files, and
fix
will do the deprecation fixes. 2.14 has the
fmt
support, and 2.15 will have
fix
a
Ok, but since we are using
--check
it will just inform us what needs to be fixed and if any BUILD files are missing (
tailor --check
)….right?
h
yeah, so
tailor --check update-build-files --check
is short hand for
--tailor-check --update-build-files-check tailor update-build-files
. That is, you are saying to run both the goals
tailor
and
update-build-files
, and for both you are setting their
--check
options
where the
--check
options means "don't actually modify BUILD files, only error if changes are necessary"
👍 1