so, what is the rule on "where does one have to have a BUILD file, and what contents are required?"
09/21/2020, 4:12 PM
You need a target to cover every file that you want Pants to know about. A good default is to have one BUILD file per distinct directory: https://www.pantsbuild.org/docs/targets#target-granularity
As Danny explained, you can also have coarser targets that cover subdirectories too by using recursive globs like