Is there a way to validate that the build files ar...
# development
m
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 conftests.py 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/conftest.py`.

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 <https://www.pantsbuild.org/v2.8/docs/targets> for more information on target definitions.

You may want to run `./pants tailor` to autogenerate your BUILD files. See <https://www.pantsbuild.org/v2.8/docs/create-initial-build-files>.
ah, the build files