aloof-zoo-84089
12/29/2023, 2:43 PMaloof-zoo-84089
12/29/2023, 2:44 PMaloof-zoo-84089
12/29/2023, 2:45 PMaloof-zoo-84089
12/29/2023, 2:50 PMGenerateSourcesRequest
, but it's unclear to me what the input/output are. For now I've got the input as Dependencies
(for future use querying the graph), and an output of GeneratedSources
.
I've got a Rule that takes the request and returns a GeneratedSources
, just creating a Digest
, with some file content.
I've registered all of these bits in the plugin.
This doesn't seem to be running the rule. The target is in the graph and seems to be working, that's all fine. I assume that there must be nothing depending on the output from the rule and therefore not pulling everything through, but I'm not sure how this bit would work.aloof-zoo-84089
12/29/2023, 2:51 PMaloof-zoo-84089
12/29/2023, 2:52 PMwide-midnight-78598
12/29/2023, 2:52 PMaloof-zoo-84089
12/29/2023, 2:57 PMaloof-zoo-84089
12/29/2023, 2:59 PMFor the package goal, our output seems to reasonably be a BuiltPackage. How did I find this out? I looked at the rules forThis sounds like it might be quite useful, if I can figure out what the right type should be for my use-case.andpex_binary
for ideas.python_distribution
wide-midnight-78598
12/29/2023, 3:01 PMaloof-zoo-84089
12/29/2023, 3:05 PMaloof-zoo-84089
12/29/2023, 3:06 PMDependencies
, but I'm not sure if that's from the right type hierarchy expected at that point.wide-midnight-78598
12/29/2023, 3:11 PMaloof-zoo-84089
12/29/2023, 3:15 PMaloof-zoo-84089
12/29/2023, 3:15 PMwide-midnight-78598
12/29/2023, 3:16 PMaloof-zoo-84089
12/29/2023, 3:16 PMwide-midnight-78598
12/29/2023, 3:18 PMwide-midnight-78598
12/29/2023, 3:18 PMaloof-zoo-84089
12/29/2023, 3:19 PMwide-midnight-78598
12/29/2023, 3:21 PMaloof-zoo-84089
12/29/2023, 3:21 PMaloof-zoo-84089
12/29/2023, 3:21 PMI'm guessing it sounds like you want to create a target, which is a dependency to your package/run/etc targets, so that it's run along the way ...
aloof-zoo-84089
12/29/2023, 3:21 PMaloof-zoo-84089
12/29/2023, 3:22 PMpython_sources
-> foo_target
-> pex_binary
, and the binary runs successfullywide-midnight-78598
12/29/2023, 3:25 PMaloof-zoo-84089
12/29/2023, 3:31 PMaloof-zoo-84089
12/29/2023, 3:32 PMBuiltPackage
(not sure if that's actually what I need) and now I'm getting graph errors suggesting that there aren't installed rules for generating source files, which seems incorrect.wide-midnight-78598
12/29/2023, 3:36 PMaloof-zoo-84089
12/29/2023, 3:39 PMaloof-zoo-84089
12/29/2023, 3:41 PMBuiltPackage
is not the right level for me to "inject" the file, because by that point it has already been packaged, but I want to contribute the file to the package.aloof-zoo-84089
12/29/2023, 3:41 PMresources
target for a generated file, but I'm not sure how to bridge creating a file in a rule, and the resources target.gorgeous-winter-99296
12/29/2023, 3:41 PMresource
is the concept you're looking for, maybe? Grep for experimental_wrap_as_resources
... that's a source generator going from file "anything" -> resourcealoof-zoo-84089
12/29/2023, 3:43 PMgorgeous-winter-99296
12/29/2023, 3:45 PMpants
and use the Get
helpers as per usual. As long as your Get(Output, Input)
matches a rule (or sequence thereof) it'll work. There's a big project to make rules directly callable, I'm honestly not sure where we are around that.gorgeous-winter-99296
12/29/2023, 3:47 PMaloof-zoo-84089
12/29/2023, 3:47 PMaloof-zoo-84089
12/29/2023, 3:48 PMResource
? I don't see a resource type.aloof-zoo-84089
12/29/2023, 3:49 PMTargets
, because I eventually want to be able to write some data from a subset of targets into a file.wide-midnight-78598
12/29/2023, 3:49 PMwide-midnight-78598
12/29/2023, 3:49 PMgorgeous-winter-99296
12/29/2023, 3:51 PMResourceSourceField
.aloof-zoo-84089
12/29/2023, 3:51 PMaloof-zoo-84089
12/29/2023, 3:52 PMResourceSourceField
?gorgeous-winter-99296
12/29/2023, 3:54 PMgorgeous-winter-99296
12/29/2023, 3:55 PMaloof-zoo-84089
12/29/2023, 3:57 PMgorgeous-winter-99296
12/29/2023, 3:58 PMaloof-zoo-84089
12/29/2023, 3:59 PMaloof-zoo-84089
12/29/2023, 4:00 PMgorgeous-winter-99296
12/29/2023, 4:01 PMaloof-zoo-84089
12/29/2023, 4:01 PMgorgeous-winter-99296
12/29/2023, 4:02 PMgorgeous-winter-99296
12/29/2023, 4:03 PMaloof-zoo-84089
12/29/2023, 4:04 PMaloof-zoo-84089
12/29/2023, 4:06 PMgorgeous-winter-99296
12/29/2023, 4:10 PMaloof-zoo-84089
12/29/2023, 4:11 PMaloof-zoo-84089
12/29/2023, 4:11 PMaloof-zoo-84089
12/29/2023, 4:17 PMgorgeous-winter-99296
12/29/2023, 4:38 PMaloof-zoo-84089
12/29/2023, 4:53 PMaloof-zoo-84089
12/29/2023, 4:53 PMaloof-zoo-84089
12/29/2023, 4:53 PMgorgeous-winter-99296
12/29/2023, 4:59 PMaloof-zoo-84089
12/29/2023, 5:07 PMaloof-zoo-84089
12/29/2023, 5:07 PMaloof-zoo-84089
12/29/2023, 5:09 PMaloof-zoo-84089
12/29/2023, 5:09 PMResourceSourceField
not ResourcesFieldSet
aloof-zoo-84089
12/29/2023, 5:10 PMaloof-zoo-84089
12/29/2023, 5:12 PMgorgeous-winter-99296
12/31/2023, 11:52 AMhappy-kitchen-89482
01/04/2024, 8:28 PM