flat-zoo-31952
08/21/2022, 4:16 PM./pants tailor
will take care of things for which the backends are installed, but I'm thinking of also requiring that even text files or json files or whatever be at least lumped into files()
targets so that nothing is really unknown to Pants. Could this backfire?bitter-ability-32190
08/21/2022, 7:31 PMcareful-address-89803
08/22/2022, 1:39 AMbitter-ability-32190
08/22/2022, 10:30 AMfresh-cat-90827
08/22/2022, 1:43 PM./pants --files-not-found-behavior=error filedeps ::
to find all unmatched globs from sources
field
• ./pants --owners-not-found-behavior=error list project/**/*.py
on some projects to identify source files that are not ownedflat-zoo-31952
08/22/2022, 2:42 PMbitter-ability-32190
08/22/2022, 2:43 PMflat-zoo-31952
08/22/2022, 7:49 PMconfig.json
to load but that file just being dropped in there and unused. Or said config.json
is really critical for some test, but we forget to add it and then someone changes it and it doesn't run tests and breaks things. I don't know if forcing file targets here is a good idea either, it might lead to blanket ignores or just files()
targets with nothing depending on them just as easily. It's why I was trolling for opinionsbitter-ability-32190
08/22/2022, 7:50 PMconfig.json
is critical to a test, but it's existence isn't tested... 🙂flat-zoo-31952
08/22/2022, 7:51 PMbitter-ability-32190
08/22/2022, 7:51 PMflat-zoo-31952
08/22/2022, 7:52 PMcareful-address-89803
08/22/2022, 8:06 PM./pants tailor --check update-build-files --check
. I could see adding the commands above to that check, and maybe as a pre-commit hook.flat-zoo-31952
08/22/2022, 8:08 PM--owners-not-found-behavior
is deprecated in 2.13, and passing recursive globs seems to blow up (this could be a bug though)careful-address-89803
08/22/2022, 8:10 PMmunger_plugin
which creates the file
target could also be a solution.