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

Don't include deprecated packages #355

Merged
merged 4 commits into from
May 25, 2024
Merged

Conversation

gewarren
Copy link
Contributor

No description provided.

@gewarren gewarren requested a review from a team May 23, 2024 20:28
Copy link
Member

@BillWagner BillWagner left a 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.

@@ -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)>();
Copy link
Member

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:

Suggested change
var packages = new List<(PackageIdentity, bool)>();
var packages = new List<(PackageIdentity version, bool isDeprecated)>();

Copy link
Contributor Author

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!

PackageIndexer/DotnetPackageIndex.cs Outdated Show resolved Hide resolved
PackageIndexer/DotnetPackageIndex.cs Outdated Show resolved Hide resolved
@gewarren gewarren merged commit 193d192 into dotnet:main May 25, 2024
9 checks passed
@gewarren gewarren deleted the no-deprecated-pakcs branch May 25, 2024 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants