happy-psychiatrist-90774
10/09/2024, 9:02 AMSyntheticTargetsRequest completely ignores marker_filenames option
Is this intentional or an oversight?fast-nail-55400
10/09/2024, 2:28 PMSyntheticTargetsRequest operates very early in the process of Pants determining what targets are available.fast-nail-55400
10/09/2024, 2:28 PMfast-nail-55400
10/09/2024, 2:29 PMhappy-psychiatrist-90774
10/09/2024, 2:29 PMhappy-psychiatrist-90774
10/09/2024, 2:30 PMhappy-psychiatrist-90774
10/09/2024, 2:31 PMfast-nail-55400
10/09/2024, 2:33 PMfast-nail-55400
10/09/2024, 2:33 PMfast-nail-55400
10/09/2024, 2:33 PMhappy-psychiatrist-90774
10/09/2024, 2:38 PMhappy-psychiatrist-90774
10/09/2024, 2:39 PMhappy-psychiatrist-90774
10/09/2024, 2:40 PMspec_paths_request (even though it's not quite working for me right now 😅)happy-psychiatrist-90774
10/09/2024, 2:42 PMfast-nail-55400
10/09/2024, 2:48 PMmarker_filenames. Are source roots somehow not available to your plugin?fast-nail-55400
10/09/2024, 2:49 PMhappy-psychiatrist-90774
10/09/2024, 2:54 PMSyntheticTargetsRequest.REQUEST_TARGETS_PER_DIRECTORY it will honor marker_filenames but it doesn'thappy-psychiatrist-90774
10/09/2024, 2:56 PMfast-nail-55400
10/09/2024, 2:58 PM@dataclass(frozen=True)
class SyntheticExampleTargetsPerDirectoryRequest(SyntheticTargetsRequest):
path: str = SyntheticTargetsRequest.REQUEST_TARGETS_PER_DIRECTORY
# Optional: (without it, only paths with BUILD files will be consistently considered)
spec_paths_request = SyntheticExampleTargetsPerDirectorySpecPathsRequestfast-nail-55400
10/09/2024, 2:58 PMSyntheticTargetsRequest.SINGLE_REQUEST_FOR_ALL_TARGETS and just return all of the targets at once (to avoid the "only paths with BUILD files will be consistently considered" part)?fast-nail-55400
10/09/2024, 2:59 PMSyntheticTargetsRequesthappy-psychiatrist-90774
10/09/2024, 3:02 PMSyntheticTargetsRequest.SINGLE_REQUEST_FOR_ALL_TARGETS but couldn't get it to work. All I'm getting back is SyntheticTargetsRequest(path='') 😕fast-nail-55400
10/09/2024, 3:23 PMsrc/python/pants/engine/internals/synthetic_targets_test.py for your use case? That way, we could debug and see precisely what is going on.happy-psychiatrist-90774
10/09/2024, 3:26 PM