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

lively-dusk-46231

10/22/2022, 5:42 PM
Facing something else which seems odd with my custom
BUILD
file I have an example structure as:
Copy code
app1
    ... files in app1
scripts
    ... some misc helper scripts
BUILD
My
BUILD
contains:
Copy code
python_sources(name='source', sources=['app1/**/*.py'])
---- Now, when I do:
./pants list ::
It shows:
Copy code
app1/__init__.py:source
app1/module1/__init__.py:../source
scripts/script1.py <-------------------------- I never mentioned this in my sources. Why is it here ?
1
2
b

bitter-ability-32190

10/22/2022, 5:45 PM
Thats it? No
BUILD
files elsewhere or any other definitions in that one?
w

wide-midnight-78598

10/22/2022, 5:50 PM
Especially any "empty"
python_sources()
l

lively-dusk-46231

10/22/2022, 5:52 PM
Ahh. I had a rogue
python_sources()
and
BUILD
from the earlier
tailor
command Found it using
cat **/BUILD
False alarm
👍 1