Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upStart requiring a reason for all yanks #2608
Comments
alexcrichton
referenced this issue
Apr 23, 2016
Open
Consider showing future incompatible warnings from dependencies #2609
carols10cents
referenced this issue
May 14, 2017
Closed
Add a deprecated property to Cargo.toml #549
This was referenced Oct 30, 2017
This comment has been minimized.
This comment has been minimized.
|
If we can standardize the yank text to a small list we could store it in the index and avoid the HTTP overhead for the common case. |
This comment has been minimized.
This comment has been minimized.
|
For the yank of futures 0.2 something like "please use futures-preview instead" would be a useful yank message. Small list of predefined messages wouldn't cover it, unless you allowed parametrized messages, but that might be too much complexity for little gain. |
This comment has been minimized.
This comment has been minimized.
tarcieri
commented
Dec 19, 2018
•
|
Note: there's some discussion of this issue in the context of this thread: https://internals.rust-lang.org/t/pre-rfc-reviving-security-advisories-in-crates-io-rfc-pr-1752/9017/11?u=bascule Namely that if the "yank message" that gets persisted to the crates.io index can be something like a structured TOML file, a mechanism like this could potentially be used for storing RustSec security advisories in the crates.io index. However, for that purpose, it would be helpful if the "yank message" could span yanking multiple releases of the same crate. |
This comment has been minimized.
This comment has been minimized.
DevQps
commented
Mar 16, 2019
|
I think this would be a great idea. Especially to have some kind of categories signalling why it was yanked together with a more explanatory description. I do however wonder if some authors that just want to quickly yank something will not choose "bug" instead of "security" for example. Maybe an interactive version with a question like: "Does this version expose vulnerabilities?" or something like that. |
alexcrichton commentedApr 22, 2016
@wycats, @nikomatsakis and I have discussed recently the ability to yank a crate with a reason, and then whenever that yanked crate is compiled locally it will present the reason as a warning.
The intended use cases for this would be:
Technically, I believe this should be implemented through:
cargo yankto require a message indicating why the crate is being yanked.I think this should suffice as an "opportunistic nudge" for these situations where possible, although it's certainly no form of ironclad guarantee.
Thoughts @wycats, @nikomatsakis?