bitter-ability-32190
10/05/2022, 3:54 PMbitter-ability-32190
10/05/2022, 3:55 PMregistration_rules
will (if prompted) also yield
a memoized classproperty rule which does the legwork for you.
It works for everything I've changed... EXCEPT for gofmt
.bitter-ability-32190
10/05/2022, 3:56 PMbitter-ability-32190
10/05/2022, 3:57 PM"pants.backend.experimental.go",
out in pants.toml
and it'll workbitter-ability-32190
10/05/2022, 3:58 PM*gofmt_rules(),
from src/python/pants/backend/experimental/go/register.py
it worksbitter-ability-32190
10/05/2022, 3:59 PMNo installed rules return the type GofmtRequest.PartitionRequest, and it was not provided by potential callers of @rule(pants.core.goals.fmt:179:default_single_partition_partitioner(GofmtRequest.PartitionRequest, GofmtSubsystem) -> Partitions, gets=[Get(SourcesPaths, [SourcesPathsRequest])]).
If that type should be computed by a rule, ensure that that rule is installed.
If it should be provided by a caller, ensure that it is included in any relevant Query or Get.
No installed rules return the type GofmtSubsystem, and it was not provided by potential callers of @rule(pants.core.goals.fmt:179:default_single_partition_partitioner(GofmtRequest.PartitionRequest, GofmtSubsystem) -> Partitions, gets=[Get(SourcesPaths, [SourcesPathsRequest])]).
bitter-ability-32190
10/05/2022, 3:59 PMbitter-ability-32190
10/05/2022, 4:00 PM*GofmtSubsystem.rules(),
was never registered?!bitter-ability-32190
10/05/2022, 4:01 PMcollect_rules
registers the rules of the subsystem if its an input type.bitter-ability-32190
10/05/2022, 4:02 PM