Skip to content

Commit fe0e258

Browse files
committed
Enable package source mapping
1 parent 79c9907 commit fe0e258

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/Cli/dotnet/NugetPackageDownloader/NuGetPackageDownloader.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ private IEnumerable<PackageSource> LoadNuGetSources(PackageId packageId, Package
327327
PackageSourceProvider packageSourceProvider = new(settings);
328328
defaultSources = packageSourceProvider.LoadPackageSources().Where(source => source.IsEnabled).ToList();
329329

330-
packageSourceMapping = packageSourceMapping ?? PackageSourceMapping.GetPackageSourceMapping(settings);
330+
packageSourceMapping ??= PackageSourceMapping.GetPackageSourceMapping(settings);
331331

332332
// filter package patterns if enabled
333333
if (_isNuGetTool && packageSourceMapping?.IsEnabled == true)

src/Cli/dotnet/commands/dotnet-workload/WorkloadCommandBase.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,8 @@ public WorkloadCommandBase(
116116
nugetLogger,
117117
Reporter,
118118
restoreActionConfig: RestoreActionConfiguration,
119-
verifySignatures: VerifySignatures);
119+
verifySignatures: VerifySignatures,
120+
isNuGetTool: true);
120121
}
121122

122123
/// <summary>

0 commit comments

Comments
 (0)