Skip to content

Commit df94014

Browse files
committed
Log directories in the dotnet sdk-manifests, and packs dir if installation fails
1 parent 0a6532a commit df94014

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

src/tasks/WorkloadBuildTasks/InstallWorkloadFromArtifacts.cs

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,20 @@ public override bool Execute()
6060
Log.LogMessage(MessageImportance.High, $"{Environment.NewLine}** workload install **{Environment.NewLine}");
6161
(int exitCode, string output) = Utils.TryRunProcess(
6262
Path.Combine(SdkDir, "dotnet"),
63-
$"workload install --skip-manifest-update --no-cache --configfile \"{nugetConfigPath}\" {WorkloadId.ItemSpec}",
63+
$"workload install -sdqoweiu-skip-manifest-update --no-cache --configfile \"{nugetConfigPath}\" {WorkloadId.ItemSpec}",
6464
workingDir: Path.GetTempPath(),
6565
silent: false,
6666
debugMessageImportance: MessageImportance.High);
6767
if (exitCode != 0)
6868
{
69-
Log.LogError($"workload install failed");
69+
Log.LogError($"workload install failed: {output}");
70+
71+
foreach (var dir in Directory.EnumerateDirectories(Path.Combine(SdkDir, "sdk-manifests"), "*", SearchOption.AllDirectories))
72+
Log.LogMessage(MessageImportance.Low, $"\t{Path.Combine(SdkDir, "sdk-manifests", dir)}");
73+
74+
foreach (var dir in Directory.EnumerateDirectories(Path.Combine(SdkDir, "packs"), "*", SearchOption.AllDirectories))
75+
Log.LogMessage(MessageImportance.Low, $"\t{Path.Combine(SdkDir, "packs", dir)}");
76+
7077
return false;
7178
}
7279

0 commit comments

Comments
 (0)