C#: Add retry logic to file (nuget.exe, dotnet-install.sh) downloads

This commit is contained in:
Tamas Vajk
2024-08-19 12:19:51 +02:00
parent a25d9c7397
commit 8b6c293b5c
8 changed files with 53 additions and 17 deletions

View File

@@ -248,7 +248,8 @@ namespace Semmle.Extraction.CSharp.DependencyFetching
var downloadDotNetInstallSh = BuildScript.DownloadFile(
"https://dot.net/v1/dotnet-install.sh",
dotnetInstallPath,
e => logger.LogWarning($"Failed to download 'dotnet-install.sh': {e.Message}"));
e => logger.LogWarning($"Failed to download 'dotnet-install.sh': {e.Message}"),
logger);
var chmod = new CommandBuilder(actions).
RunCommand("chmod").