happy-kitchen-89482
08/15/2019, 12:57 AMget_sources()
on an adaptor from a HydratedTarget:
File "/Users/benjyw/.cache/pants/setup/bootstrap-Darwin-x86_64/1.20.0.dev1_py37/lib/python3.7/site-packages/pants/engine/legacy/structs.py", line 69, in get_sources
globs = BaseGlobs.from_sources_field(sources, self.address.spec_path)
File "/Users/benjyw/.cache/pants/setup/bootstrap-Darwin-x86_64/1.20.0.dev1_py37/lib/python3.7/site-packages/pants/engine/legacy/structs.py", line 315, in from_sources_field
raise ValueError('Expected either a glob or list of literal sources: got: {}'.format(sources))
ValueError: Expected either a glob or list of literal sources: got: EagerFilesetWithSpec(...)
happy-kitchen-89482
08/15/2019, 12:58 AMaloof-angle-91616
08/16/2019, 2:21 AMaloof-angle-91616
08/16/2019, 2:22 AMaloof-angle-91616
08/16/2019, 3:14 AMaloof-angle-91616
08/16/2019, 3:20 AMaloof-angle-91616
08/16/2019, 3:41 AMhundreds-breakfast-49010
08/16/2019, 9:45 PM@rule
?hundreds-breakfast-49010
08/16/2019, 9:45 PMaloof-angle-91616
08/16/2019, 9:46 PMyield Get()
should provide an instance of a Get
to the consumer of the coroutinealoof-angle-91616
08/16/2019, 9:46 PMaloof-angle-91616
08/16/2019, 9:47 PM@rule
does some parsing in order to get internal yield Get()
expressions to know what products the rule is going to requestaloof-angle-91616
08/16/2019, 9:48 PMyield
that Get
within a rule, it just won't be checked at compile time and may fail if the Get can't be satisfied, i thinkaloof-angle-91616
08/17/2019, 6:19 PMaloof-angle-91616
08/17/2019, 7:16 PMdatatype
, specifically things like factory methods to coerce individual arguments: https://docs.python.org/3/library/dataclasses.html#dataclasses.field.hundreds-father-404
08/19/2019, 4:09 AMaloof-angle-91616
08/19/2019, 8:03 PMaloof-angle-91616
08/19/2019, 8:06 PMaloof-angle-91616
08/19/2019, 8:07 PMaloof-angle-91616
08/19/2019, 8:08 PMhundreds-breakfast-49010
08/21/2019, 11:54 PM@rule
?hundreds-breakfast-49010
08/21/2019, 11:55 PMexecute
hundreds-breakfast-49010
08/23/2019, 1:11 AMClocBinary
(or any other class representing a binary tool) as a subject of an @rule
? or is it okay to use ClocBinary.global_instance().hackily_snapshot(self.context)
in an @rule?hundreds-breakfast-49010
08/23/2019, 1:11 AMwitty-crayon-22786
08/23/2019, 1:23 AMshould I be able to requestyes, with an(or any other class representing a binary tool) as a subject of anClocBinary
?@rule
optionable_rule
, because it is a Subsystem
witty-crayon-22786
08/23/2019, 1:24 AMis it okay to useno, that's the v1 way.in an @rule?ClocBinary.global_instance().hackily_snapshot(self.context)
witty-crayon-22786
08/23/2019, 1:28 AMwitty-crayon-22786
08/23/2019, 1:28 AMwitty-crayon-22786
08/23/2019, 1:31 AMUrlToFetch
intrinsic would be an excellent project though.hundreds-breakfast-49010
08/23/2019, 10:34 PM