1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-14 11:49:53 +03:00
aports/community/dotnet9-runtime/build_44361-ignore-clean-while-building-errors.patch
2024-12-02 06:45:39 +00:00

28 lines
1.7 KiB
Diff

Patch-Source: https://github.com/dotnet/sdk/pull/44361
From ab9d77dca5a9800066ab67b29c98558be5a82a1c Mon Sep 17 00:00:00 2001
From: Viktor Hofer <viktor.hofer@microsoft.com>
Date: Tue, 22 Oct 2024 17:54:34 +0200
Subject: [PATCH] Ignore cleanWhileBuilding errors
Fixes https://github.com/dotnet/source-build/issues/4688
---
.../content/repo-projects/Directory.Build.targets | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/repo-projects/Directory.Build.targets b/repo-projects/Directory.Build.targets
index f90d2a52d650..bce4805630ed 100644
--- a/repo-projects/Directory.Build.targets
+++ b/repo-projects/Directory.Build.targets
@@ -621,8 +621,9 @@
<Message Text="DirSize After Building $(RepositoryName)" Importance="High" Condition="'$(BuildOS)' != 'windows' and '@(DirsToDeleteWithTrailingSeparator)' != ''" />
<Exec Command="df -h $(RepoRoot)" Condition="'$(BuildOS)' != 'windows' and '@(DirsToDeleteWithTrailingSeparator)' != ''" />
- <!-- Cleanup everything else -->
- <RemoveDir Directories="@(DirsToDeleteWithTrailingSeparator)" />
+ <!-- Cleanup everything else. Ignore errors as out-of-band build servers don't reliably shut down, even with the build-server shutdown command.
+ https://github.com/dotnet/source-build/issues/4175 tracks a long term fix. -->
+ <RemoveDir Directories="@(DirsToDeleteWithTrailingSeparator)" ContinueOnError="true" />
<Message Text="DirSize After CleanupRepo $(RepositoryName)" Importance="High" Condition="'$(BuildOS)' != 'windows'and '@(DirsToDeleteWithTrailingSeparator)' != ''" />
<Exec Command="df -h $(RepoRoot)" Condition="'$(BuildOS)' != 'windows'and '@(DirsToDeleteWithTrailingSeparator)' != ''" />