Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dependency manager/nuget: use enabled feeds only #13312

Merged
merged 2 commits into from
Jun 17, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -198,11 +198,11 @@ module internal Utilities =
seq {
if success then
for source in stdOut do
// String returned by dotnet nuget list source --format short
// is formatted similar to:
// String returned by `dotnet nuget list source --format short` is formatted similar to:
// E https://dotnetfeed.blob.core.windows.net/dotnet-core/index.json
// So strip off the flags
let pos = source.IndexOf(" ")

if pos >= 0 then yield ("i", source.Substring(pos).Trim())
// Use enabled feeds only (see NuGet.Commands.ListSourceRunner.Run) and strip off the flags.
if source.Length > 0 && source.[0] = 'E' then
let pos = source.IndexOf(" ")
if pos >= 0 then
"i", source.Substring(pos).Trim()
}