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

Add a publish-build-info command for reporting build results to crates.io #5099

Closed
wants to merge 5 commits into from
Closed

Conversation

carols10cents
Copy link
Member

We're working on reviving this old thing :) The associated crates.io PR should go in first.

This goes with rust-lang/crates.io#764. @shepmaster worked on these too :)

This PR adds a cargo command, publish-build-info, which allows crate owners to report crate version, rust version, target, and pass/fail to crates.io.

The purpose is to enable crate authors to automatically report to potential crate users on the Rust version and platform compatibility of each version of the crate.

The idea is that this command would be added to CI, and an example of configuration for Travis is in the documentation we added. We haven't actually tested that configuration out yet; we wanted to get these PRs in for feedback before we set up crates.io instances that weren't local but that we could publish to :) We want to add Appveyor too, but we want to test the travis configuration first.

We also thought about, but didn't implement:

  • An --overwrite flag to allow editing of an already-reported-on crate version+rust version+target combination, to allow for correcting errors if reporting manually Overwriting is now the default behavior.
  • Adding flags to enable manual specification of rust version and crate version, right now cargo just detects what it's running with. Target can be overridden with --target since there was already support for that flag :)

@rust-highfive
Copy link

r? @alexcrichton

(rust_highfive has picked a reviewer for you, use r? to override)

@alexcrichton
Copy link
Member

Like #3627 looks great to me! I think we can mege whenever crates.io is ready

@bors
Copy link
Contributor

bors commented Mar 13, 2018

☔ The latest upstream changes (presumably #5152) made this pull request unmergeable. Please resolve the merge conflicts.

@alexcrichton
Copy link
Member

I'm gonna close this for now as it's pretty out of date at this point, but it can of course be resubmitted!

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.

5 participants