I need a hand, guys. I have a library that is used...
# general
a
I need a hand, guys. I have a library that is used in couple of microservices. I don't know how to build it, so the nested files will be also included. Is it possible to traverse dirs recurrently? This is my structure:
Copy code
root/
 ├ pants
 ├ pants.ini
 └ src/
   └ python/
     └ library/
       ├ BUILD
       └ foo/
         ├ __init__.py
         ├ module1.py
         ├ module2.py
         ├ feature/
         │  ├ __init__.py
         │  ├ module1.py
         │  └ module2.py
         └ data/
           ├ data1.json
           └ data2.json
Only contents of
foo
are included, but not
feature
and
data
. Here is BUILD file for library
foo
Copy code
python_library(
    name = "foo",
    dependencies = [],
    sources = globs("foo/*"),
)
I also tried
sources = "foo/*"