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

Only include unyanked crate versions #1272

Merged
merged 1 commit into from
Jan 19, 2022

Conversation

carlwgeorge
Copy link
Contributor

crates.io allows maintainers to "yank" a crate. When this happens, the crates backend should not include the yanked version.

https://doc.rust-lang.org/cargo/commands/cargo-yank.html

@carlwgeorge carlwgeorge requested a review from a team as a code owner January 19, 2022 04:40
@softwarefactory-project-zuul
Copy link

Build failed. More information on how to proceed and troubleshoot errors available at https://fedoraproject.org/wiki/Zuul-based-ci

@Zlopez
Copy link
Contributor

Zlopez commented Jan 19, 2022

Thanks for the PR! Could you check the failing test and add news file for this change?

@softwarefactory-project-zuul
Copy link

Build succeeded.

crates.io allows maintainers to "yank" a crate.  When this happens, the
crates backend should not include the yanked version.

https://doc.rust-lang.org/cargo/commands/cargo-yank.html
@softwarefactory-project-zuul
Copy link

Build succeeded.

@mergify mergify bot merged commit 8582325 into fedora-infra:master Jan 19, 2022
@carlwgeorge carlwgeorge deleted the yanked_crates branch January 19, 2022 18:27
@decathorpe
Copy link
Contributor

Hi @carlwgeorge ! Sorry for taking so long to reply, your email did not get lost :)

Thanks for filing this PR, looks good from my side.

I just have one question: Once a version has been added to the database, it won't get removed again, if it becomes "yanked" at some later point, will it?

@carlwgeorge
Copy link
Contributor Author

No, once anitya sees a version, it's saved even if it changes to yanked status later. But such a version can be flagged for removal by the admins.

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.

3 participants