-
Notifications
You must be signed in to change notification settings - Fork 28
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
Don't include deprecated packages #355
Conversation
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.
This looks great @gewarren
I had some optional suggestions. Once you decide, it's ready to merge.
PackageIndexer/DotnetPackageIndex.cs
Outdated
@@ -41,12 +41,12 @@ public static async Task CreateAsync(string packageListPath, bool usePreviewVers | |||
params string[] feedUrls | |||
) | |||
{ | |||
var packages = new List<PackageIdentity>(); | |||
var packages = new List<(PackageIdentity, bool)>(); |
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.
Throughout this logic, I'd consider named tuples. I think it will make it easier to read:
var packages = new List<(PackageIdentity, bool)>(); | |
var packages = new List<(PackageIdentity version, bool isDeprecated)>(); |
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.
Thanks @BillWagner, I like that much better. Just never used them before!
…into no-deprecated-pakcs
No description provided.