ancient-rose-27306
08/26/2022, 2:59 AM./pants tailor --check update-build-files --check
and ./pants tailor --check
?hundreds-father-404
08/26/2022, 3:20 AMupdate-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
ancient-rose-27306
08/26/2022, 3:22 AM--check
it will just inform us what needs to be fixed and if any BUILD files are missing (tailor --check
)….right?hundreds-father-404
08/26/2022, 3:29 AMtailor --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
optionshundreds-father-404
08/26/2022, 3:30 AM--check
options means "don't actually modify BUILD files, only error if changes are necessary"