Requires delayed release
@@ -143,14 +143,6 @@ public final class RecursivePackageProviderBackedTargetPatternResolver
rulesOnly ? FilteringPolicies.and(FilteringPolicies.RULES_ONLY, policy) : policy;
try {
Package pkg = getPackage(packageIdentifier);
- if (pkg.containsErrors()) {
- eventHandler.handle(
- Event.error(
- "package contains errors: "
- + pkg.getNameFragment()
- + ": "
- + pkg.getFailureDetail().getMessage()));
- }
return TargetPatternResolverUtil.resolvePackageTargets(pkg, actualPolicy);
} catch (NoSuchThingException e) {
String message =
@@ -172,14 +164,6 @@ public final class RecursivePackageProviderBackedTargetPatternResolver
ImmutableMap.Builder<PackageIdentifier, Collection<Target>> result = ImmutableMap.builder();
for (PackageIdentifier pkgId : pkgIds) {
Package pkg = pkgs.get(pkgId);
- if (pkg.containsErrors()) {
- eventHandler.handle(
- Event.error(
- "package contains errors: "
- + pkg.getNameFragment()
- + ": "
- + pkg.getFailureDetail().getMessage()));
- }
result.put(pkgId, TargetPatternResolverUtil.resolvePackageTargets(pkg, policy));
}
return result.buildOrThrow();
