12/07/2021, 1:10 PM
Is there a way to validate that the build files are correct without running the tests on all targets? One of the issues we are getting lately is that users are adding and getting errors late in CI about the BUILD files. Something like this
Copy code
15:05:46.60 [ERROR] 1 Exception encountered:

  ResolveError: No owning targets could be found for the file `some/package/name/here/tests/`.

Please check that there is a BUILD file in the parent directory some/package/name/here/tests with a target whose `sources` field includes the file. See <> for more information on target definitions.

You may want to run `./pants tailor` to autogenerate your BUILD files. See <>.
ah, the build files