-
Notifications
You must be signed in to change notification settings - Fork 1.9k
C#: Automatically use configured private registry feeds #18850
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
Changes from 1 commit
6b2f348
63d5517
11efb55
726123c
0db6a26
6b15f77
a8dde15
9560593
b6c74fe
284f612
51874b8
7a92a72
d564529
92eab47
4448369
7cea2ad
d2b88ae
4d3b024
73ca2eb
be95d33
fe1c098
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -708,8 +708,13 @@ private bool IsFeedReachable(string feed, int timeoutMilliSeconds, int tryCount, | |
| private bool CheckFeeds(out HashSet<string> explicitFeeds) | ||
| { | ||
| (explicitFeeds, var allFeeds) = GetAllFeeds(); | ||
| HashSet<string> feedsToCheck = explicitFeeds; | ||
|
|
||
| var allFeedsReachable = this.CheckFeeds(explicitFeeds); | ||
| // If private package registries are configured for C#, then check those | ||
| // in addition to the ones that are configured in `nuget.config` files. | ||
| this.dependabotProxy?.RegistryURLs.ForEach(url => feedsToCheck.Add(url)); | ||
|
|
||
| var allFeedsReachable = this.CheckFeeds(feedsToCheck); | ||
|
||
|
|
||
| var inheritedFeeds = allFeeds.Except(explicitFeeds).ToHashSet(); | ||
| if (inheritedFeeds.Count > 0) | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe rename one of the
CheckFeedsmethods. The naming is a bit confusing when their type signatures are so similar.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done in d2b88ae