Skip to content

Commit b564f6b

Browse files
CopilotmarcpopMSFT
andcommitted
Make signature verification message display only once globally
Changed _validationMessagesDisplayed flag from instance-level to static to ensure "Skipping NuGet package signature verification." message appears only once across all NuGetPackageDownloader instances during workload operations, rather than once per instance. Co-authored-by: marcpopMSFT <[email protected]>
1 parent b9e80c0 commit b564f6b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Cli/dotnet/NugetPackageDownloader/NuGetPackageDownloader.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ internal class NuGetPackageDownloader : INuGetPackageDownloader
3939
/// </summary>
4040
private readonly IReporter _reporter;
4141
private readonly IFirstPartyNuGetPackageSigningVerifier _firstPartyNuGetPackageSigningVerifier;
42-
private bool _validationMessagesDisplayed = false;
42+
private static bool _validationMessagesDisplayed = false;
4343
private readonly ConcurrentDictionary<PackageSource, SourceRepository> _sourceRepositories;
4444
private readonly bool _shouldUsePackageSourceMapping;
4545

0 commit comments

Comments
 (0)