Fix poisoning issue with existing marker (#17527)

This commit is contained in:
Nikola Milosavljevic 2023-10-13 11:31:59 -07:00 committed by GitHub
parent 25491ae339
commit c65382f002
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -155,6 +155,7 @@ namespace Microsoft.DotNet.SourceBuild.Tasks.LeakDetection
}
File.Delete(p.ItemSpec);
File.Move(poisonedPackagePath, p.ItemSpec);
Directory.Delete(packageTempPath, true);
}
}