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

ancient-rose-27306

08/26/2022, 2:59 AM
Hi guys, what’s the difference between
./pants tailor --check update-build-files --check
and
./pants tailor --check
?
h

hundreds-father-404

08/26/2022, 3:20 AM
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

ancient-rose-27306

08/26/2022, 3:22 AM
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

hundreds-father-404

08/26/2022, 3:29 AM
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
3 Views