Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[tests] fix duplicate sources in
NuGet.config
(#8772)
Context: NuGet/Home#13269 (comment) In 2f4e01e, we saw a problem with no-op NuGet restore, no longer being a no-op. So we temporarily disabled the failing `IncrementalFastDeployment` test. It turns out, it might be related to a duplicate source listed in our `NuGet.config` during MSBuild tests: <add key="dotnet8" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet8/nuget/v3/index.json" /> <add key="testsource2" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet8/nuget/v3/index.json" /> This might have surfaced a bug in NuGet, but for now let's stop emitting duplicate sources? Additionally, use `ExtraNuGetConfigSources.Distinct ()` in case we have a test that passes in duplicate sources.
- Loading branch information