Skip to content

Commit b833fff

Browse files
authored
Dump the fingerprint in readonly scenarios (#115)
1 parent 79ec255 commit b833fff

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Common/MSBuildCachePluginBase.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -543,6 +543,10 @@ private async Task HandleProjectFinishedInnerAsync(FileAccessContext fileAccessC
543543
// If file access reports are disabled in MSBuild we can't cache anything as we don't know what to cache.
544544
if (!_hasHadFileAccessReport)
545545
{
546+
// We still want to dump the fingerprint to help debug cache misses.
547+
// However, note that because we do not have the file accesses, we cannot know the PathSet.
548+
// This means that any cache miss analysis will need to take this into account.
549+
await DumpFingerprintLogAsync(logger, nodeContext, null);
546550
return;
547551
}
548552

0 commit comments

Comments
 (0)