https://pantsbuild.org/ logo
#general
Title
# general
i

incalculable-engineer-6899

05/12/2023, 12:46 PM
Ah, seems my top-level
BUILD
file created by
pants tailor ::
included:
Copy code
python_sources(  
    name="root",
)
But no python files were in the top level dir.
h

happy-kitchen-89482

05/12/2023, 3:26 PM
What is in the top-level dir? Tailor obviously saw something there that it thought required a target, and that error indicates that something in that dir needs a source root, so...
Worth seeing if adding "/" to your source roots fixes this
i

incalculable-engineer-6899

05/15/2023, 6:33 AM
Ah, I see! I use
pyinvoke
which places a
tasks.py
at the source root - that's probably why 👍
h

happy-kitchen-89482

05/15/2023, 2:56 PM
That would do it
3 Views