Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,11 @@ public void beforeCommand(
}

public void afterCommand() {
if (cache == null) {
// Not all commands cause beforeCommand to be called, but afterCommand is called
// unconditionally.
return;
}
this.cache = null;
this.inputPrefetcher = null;
this.reporter = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -268,10 +268,6 @@ public SkyValue compute(SkyKey skyKey, Environment env)
try {
if (remoteRepoContentsCache.lookupCache(
repositoryName, repoRoot, digestWriter.predeclaredInputHash, env.getListener())) {
env.getListener()
.handle(
Event.debug(
"Got %s from the remote repo contents cache".formatted(repositoryName)));
return new RepositoryDirectoryValue.Success(
repoRoot, /* isFetchingDelayed= */ false, excludeRepoFromVendoring);
}
Expand Down
Loading