Read file directly when on disk in NuGet upload duplicate check
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
In !128269 (merged), when the package file is on disk, we fetch it using ExtractMetadataFileService which is insufficient because the service is going to create a temp copy of the file. But we don't need to do this when the file is on the disk/file system. We can directly read the file from that location without the unneeded temp copy done in ExtractMetadataFileService.
A new service needs to be introduced to handle this case. ExtractMetadataFileService is suitable for pulling the file stored in object storage.
Edited by 🤖 GitLab Bot 🤖