average-australia-85137
06/06/2021, 8:52 PMException: Could not find a rule to satisfy Get(SourceFiles, SourceFilesRequest, SourceFilesRequest(sources_fields=(<class 'pants.core.target_types.RelocatedFilesSources'>(alias='_sources', address=test_docker:moved_static, value={repr(self.value)}, default={repr(self.default)}),), for_sources_types=(<class 'pants.engine.target.Sources'>,), enable_codegen=False)).
Exception: Could not find a rule to satisfy Get(SourceFiles, SourceFilesRequest, SourceFilesRequest(sources_fields=(<class 'pants.core.target_types.RelocatedFilesSources'>(alias='_sources', address=test_docker:moved_static, value={repr(self.value)}, default={repr(self.default)}),), for_sources_types=(<class 'pants.core.target_types.FilesSources'>,), enable_codegen=True)).
Looking at the code it looks like i should be able to use the codegen toggle with the HydrateSourcesRequest to create a RelocateFilesViaCodegenRequest
(by specifying FilesSources
as the requested generation type) however it doesn't seem like it ever gets that far?hundreds-father-404
06/07/2021, 12:02 AMaverage-australia-85137
07/08/2021, 3:41 PMUnionRule(DockerComponentRequest, DockerRelocatedFilesRequest),
If you remove that it does not raise graph errors but it does not know what to do with the relocated file targets
The code is the exact same as handles the other types of non-python sources (One for FilesSources & one for ResourcesSources)
any idea what's going on here(?)average-australia-85137
07/08/2021, 6:34 PMwitty-crayon-22786
07/09/2021, 3:59 PMwitty-crayon-22786
07/09/2021, 3:59 PMwitty-crayon-22786
07/09/2021, 4:00 PMwitty-crayon-22786
07/09/2021, 4:01 PM@rule
“in prod”, and iterate on getting it working in a test. once it is satisfiable in a test, it might be easier to tease apart what is missing in prod