Do not cache RepositoryResolvedEvents
When recording the resolved state of rules, restrict to rules actually
executed during the respective invocation. Cached return values can be
confusing in a log that is about knowning what a fresh refetch would result
in.
@@ -15,7 +15,7 @@ package com.google.devtools.build.lib.bazel.repository;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableMap;
-import com.google.devtools.build.lib.events.ExtendedEventHandler.Postable;
+import com.google.devtools.build.lib.events.ExtendedEventHandler.ProgressLike;
import com.google.devtools.build.lib.packages.Attribute;
import com.google.devtools.build.lib.packages.Info;
import com.google.devtools.build.lib.packages.Rule;
@@ -26,7 +26,7 @@ import java.util.Map;
/**
* Event indicating that a repository rule was executed, together with the return value of the rule.
*/
-public class RepositoryResolvedEvent implements Postable {
+public class RepositoryResolvedEvent implements ProgressLike {
public static final String ORIGINAL_RULE_CLASS = "original_rule_class";
public static final String ORIGINAL_ATTRIBUTES = "original_attributes";
public static final String RULE_CLASS = "rule_class";
