Support sharding sync when deriving targets from directories.
More generally, support sharding even if there aren't any wildcard target patterns in the project targets.
@@ -102,12 +102,6 @@ public class BlazeBuildTargetSharder {
BuildResult.SUCCESS);
}
- List<WildcardTargetPattern> wildcardIncludes = getWildcardPatterns(targets);
- if (wildcardIncludes.isEmpty()) {
- return new ShardedTargetsResult(
- new ShardedTargetList(ImmutableList.of(ImmutableList.copyOf(targets))),
- BuildResult.SUCCESS);
- }
ExpandedTargetsResult expandedTargets =
expandWildcardTargets(
project, context, workspaceRoot, projectViewSet, pathResolver, targets);
