wide-midnight-7859804/06/2023, 7:36 PM
The `@rule_helper` decorator is no longer needed. `@rule` methods may call any other methods, and if they are `async` may also use `Get` and `MultiGet`.
native_engine.IntrinsicError: Get(TargetRootsToFieldSets, TargetRootsToFieldSetsRequest, TargetRootsToFieldSetsRequest(field_set_superclass=<class 'pants.core.goals.package.PackageFieldSet'>, goal_description='', no_applicable_targets_behavior=<NoApplicableTargetsBehavior.ignore: 'ignore'>, shard=0, num_shards=-1)) was not detected in your @rule body at rule compile time. Was the `Get` constructor called in a separate function, or perhaps dynamically? If so, it must be inlined into the @rule body.
curved-television-656804/06/2023, 7:43 PM
to better highlight the true issue here. You need your async method declared before your rule.
wide-midnight-7859804/06/2023, 7:44 PM
curved-television-656804/06/2023, 7:44 PM