delightful-france-82401
06/10/2019, 3:24 PMshy-kangaroo-52886
06/11/2019, 6:35 PMresources
in setup-py target? Just having a resources
dependency results in "No exported target owner found for Resources (...)" error.shy-kangaroo-52886
06/11/2019, 7:11 PMpython_library
instead of using resources
.eager-librarian-15922
06/13/2019, 10:52 AMplain-river-51682
06/13/2019, 11:36 AMhappy-kitchen-89482
06/13/2019, 12:06 PM./pants dependencies <target>
for a flat list, or ./pants depmap <target>
for a tree. Add --help
to see options.happy-kitchen-89482
06/13/2019, 12:06 PMhappy-kitchen-89482
06/13/2019, 12:06 PMhappy-kitchen-89482
06/13/2019, 12:07 PM./pants goals | grep dependencies
yields useful infodelightful-france-82401
06/13/2019, 6:25 PM1.18.dev0
but there is one little thing that still makes the build non-deterministic
https://github.com/pantsbuild/pants/issues/7885aloof-angle-91616
06/16/2019, 8:29 AM./pants invalidate
again? someone asked me this at scaladays and i didnβt have an answerable-farmer-8537
06/17/2019, 2:21 PMhundreds-breakfast-49010
06/17/2019, 7:15 PMhappy-kitchen-89482
06/18/2019, 12:35 AMhappy-kitchen-89482
06/18/2019, 12:35 AMaloof-angle-91616
06/18/2019, 12:35 AMaloof-angle-91616
06/18/2019, 12:35 AMaloof-angle-91616
06/18/2019, 12:36 AMaloof-angle-91616
06/18/2019, 12:36 AMhappy-kitchen-89482
06/18/2019, 12:38 AMaloof-angle-91616
06/18/2019, 12:39 AMaloof-angle-91616
06/18/2019, 12:41 AMaloof-angle-91616
06/18/2019, 12:41 AMaloof-angle-91616
06/18/2019, 12:42 AMable-farmer-8537
06/18/2019, 9:28 AMroot/
β 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
python_library(
name = "foo",
dependencies = [],
sources = globs("foo/*"),
)
I also tried sources = "foo/*"
red-balloon-89377
06/18/2019, 10:10 AMsources = rglobs("foo/")
(reference: the last paragraph of this section: https://www.pantsbuild.org/build_files.html#sources). However, we highly highly encourage to have one BUILD file (and one target) per subdirectory (so one in foo
, one in foo/feature/
, one in foo/data
, and include them in the targets defined in foo/
via the dependencies
field.red-balloon-89377
06/18/2019, 10:10 AMable-farmer-8537
06/18/2019, 12:16 PMred-balloon-89377
06/18/2019, 1:20 PMcurved-vase-73456
06/18/2019, 3:24 PM./pants test
command like `Utest`s, otherwise Iβd just use changed
subsystem)