Skip to content
New issue

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

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

Already on GitHub? # to your account

Filter out missing information in get_publishers #483

Merged
merged 2 commits into from
May 26, 2023

Conversation

mystor
Copy link
Collaborator

@mystor mystor commented May 26, 2023

This avoids a potential crash when the set of relevant versions does not force an update of crates.io API information, despite more version numbers being known.

This PR also contains a fix for #481, removing duplicated suggestions from the output.

mystor added 2 commits May 26, 2023 16:31
This avoids the need for an explicit `unwrap()`, and avoids crashes in cases
where the publisher info was not requested due to all relevant versions already
being present.
This could happen with multiple versions of a crate with the same name if delta
audits are present. The test-project was modified to also have a duplicate
suggestion to test deduplication.
Copy link
Collaborator

@bholley bholley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rs=me

@bholley bholley merged commit 40b3658 into mozilla:main May 26, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants