I am getting an error running `pants publish` that...
# general
c
I am getting an error running
pants publish
that I did not experience with 2.17 but I am getting it with 2.18.0rc3: `ResolveError: No owning targets could be found for the file
conftest.py
.` There is a
BUILD
file in the same directory level as conftest.py and when I'm running publish I'm pointing at a specific folder
pants publish path/to/src::
b
Is there a
python_test_utils
target in that
BUILD
file? https://www.pantsbuild.org/docs/reference-python_test_utils If not, you might want to try
pants update-build-files ::
and see if it generates any new targets
c
There's not. We don't actually use pants for testing yet
Trying the update build files command now
c
it’s
pants tailor
to add missing targets.. the other one is to fix/rename deprecated fields etc.
🙏 1
c
Yeah. We needed to run
pants tailor
at the root dir. We only run that in CI and don't actually check in all of our
BUILD
files. So the root
BUILD
wasn't getting updated with
python_test_utils
c
I’d suggest checking in the BUILD files, and running tailor in check mode in CI to catch any mistakes.. that way you know for certain what you’re running with in CI 😉
c
Yeah. That's probably the way to go. We were avoiding checking in a bunch of files that just had
python_sources()
in them
c
yea, would be nice to be able to get rid of those altogether..