-
-
Notifications
You must be signed in to change notification settings - Fork 15k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dotnet: add patch to fix fetch-deps in dotnet 9 VMR
- Loading branch information
Showing
2 changed files
with
33 additions
and
1 deletion.
There are no files selected for viewing
30 changes: 30 additions & 0 deletions
30
pkgs/development/compilers/dotnet/UpdateNuGetConfigPackageSourcesMappings-don-t-add-em.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
From 93137ea040472f4042dd186427699ad249e7251b Mon Sep 17 00:00:00 2001 | ||
From: David McFarland <[email protected]> | ||
Date: Sun, 22 Sep 2024 16:41:07 -0300 | ||
Subject: [PATCH] UpdateNuGetConfigPackageSourcesMappings: don't add empty | ||
mappings | ||
|
||
--- | ||
.../UpdateNuGetConfigPackageSourcesMappings.cs | 6 +++++- | ||
1 file changed, 5 insertions(+), 1 deletion(-) | ||
|
||
diff --git a/eng/tools/tasks/Microsoft.DotNet.UnifiedBuild.Tasks/UpdateNuGetConfigPackageSourcesMappings.cs b/eng/tools/tasks/Microsoft.DotNet.UnifiedBuild.Tasks/UpdateNuGetConfigPackageSourcesMappings.cs | ||
index 3b188c1801..9b7050ef46 100644 | ||
--- a/eng/tools/tasks/Microsoft.DotNet.UnifiedBuild.Tasks/UpdateNuGetConfigPackageSourcesMappings.cs | ||
+++ b/eng/tools/tasks/Microsoft.DotNet.UnifiedBuild.Tasks/UpdateNuGetConfigPackageSourcesMappings.cs | ||
@@ -115,7 +115,11 @@ namespace Microsoft.DotNet.UnifiedBuild.Tasks | ||
// Skip sources with zero package patterns | ||
if (allSourcesPackages[packageSource]?.Count > 0) | ||
{ | ||
- pkgSrcMappingClearElement.AddAfterSelf(GetPackageMappingsElementForSource(packageSource)); | ||
+ var pkgSrc = GetPackageMappingsElementForSource(packageSource); | ||
+ if (pkgSrc.Elements().Any()) | ||
+ { | ||
+ pkgSrcMappingClearElement.AddAfterSelf(pkgSrc); | ||
+ } | ||
} | ||
} | ||
|
||
-- | ||
2.46.0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters