-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
on cargo publish, check for verified email before compiling #8221
Comments
Yes please! I'm now compiling for 4th time and always get some error at the end 👍 |
@rustbot claim |
Is it more reasonable to verify the email address during |
@qiangheisenberg - it may make sense to add that as a "warning" when you run However, an unverified email address already makes a What do you think? |
I think your suggestion is very reasonable. This is the most prudent approach. |
Guys, I read the relevant code. This issue is similar to issue #3662. If you want to quickly get the failure information before compiling the project, you need to send the request in advance, which means you need to send two requests (the first request is to verify the email address and other failure information; the second request is to upload the crate ). According to the protocol of sending the request, the content of the compiled crates needs to be included. The content here cannot be empty, let alone compiled content. https://github.com/rust-lang/cargo/blob/master/crates/crates-io/lib.rs#L250-#L256
So, how should I handle this request? I think But they don't seem to have the idea. |
Could someone help clarify to me which email is being talked about? Is this for validating that your account on crates.io is setup correctly and you are authorized to publish the package? |
Yes, that is my understanding. |
Ok, so this is something that can only be solved by checking with the registry. |
Describe the problem you are trying to solve
when running
cargo publish
, the binary is compiled with release mode, and then it checks if your email is verified and you can publish to the crates.io registry.Describe the solution you'd like
i'd like cargo to check if your email is verified and allowed to publish to the crates.io registry before compiling the binary in release mode.
The text was updated successfully, but these errors were encountered: