Skip to content

Commit efc6ddc

Browse files
authored
Merge pull request #36977 from dotnet/merge/release/10.0-to-main
[automated] Merge branch 'release/10.0' => 'main'
2 parents 653eaf1 + 70f214f commit efc6ddc

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

NuGet.config

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@
33
<packageSources>
44
<clear />
55
<!--Begin: Package sources managed by Dependency Flow automation. Do not edit the sources below.-->
6+
<!-- Begin: Package sources from dotnet-dotnet -->
7+
<add key="darc-pub-dotnet-dotnet-862de94" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/darc-pub-dotnet-dotnet-862de94f/nuget/v3/index.json" />
8+
<!-- End: Package sources from dotnet-dotnet -->
69
<!-- Begin: Package sources from dotnet-runtime -->
10+
<add key="darc-int-dotnet-runtime-e1f1988" value="https://pkgs.dev.azure.com/dnceng/internal/_packaging/darc-int-dotnet-runtime-e1f19886/nuget/v3/index.json" />
711
<!-- End: Package sources from dotnet-runtime -->
812
<!--End: Package sources managed by Dependency Flow automation. Do not edit the sources above.-->
913
<add key="dotnet-eng" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-eng/nuget/v3/index.json" />
@@ -22,6 +26,7 @@
2226
<clear />
2327
<!--Begin: Package sources managed by Dependency Flow automation. Do not edit the sources below.-->
2428
<!-- Begin: Package sources from dotnet-runtime -->
29+
<add key="darc-int-dotnet-runtime-e1f1988" value="true" />
2530
<!-- End: Package sources from dotnet-runtime -->
2631
<!--End: Package sources managed by Dependency Flow automation. Do not edit the sources above.-->
2732
</disabledPackageSources>

eng/common/SetupNugetSources.sh

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,8 @@ EnableInternalPackageSource() {
6666
grep -i "<add key=\"$PackageSourceName\" value=\"true\"" "$ConfigFile" > /dev/null
6767
if [ "$?" == "0" ]; then
6868
echo "Enabling internal source '$PackageSourceName'."
69-
# Remove the disabled entry
70-
local OldDisableValue="<add key=\"$PackageSourceName\" value=\"true\" />"
71-
local NewDisableValue="<!-- Reenabled for build : $PackageSourceName -->"
72-
sed -i.bak "s|$OldDisableValue|$NewDisableValue|" "$ConfigFile"
69+
# Remove the disabled entry (including any surrounding comments or whitespace on the same line)
70+
sed -i.bak "/<add key=\"$PackageSourceName\" value=\"true\" \/>/d" "$ConfigFile"
7371

7472
# Add the source name to PackageSources for credential handling
7573
PackageSources+=("$PackageSourceName")

0 commit comments

Comments
 (0)