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

feat: Publish using rust-version toolchain #381

Closed
wants to merge 1 commit into from

Conversation

epage
Copy link
Collaborator

@epage epage commented Jan 4, 2022

This is a last ditch effort to catch MSRV issues.

Fixes #380

| `publish` | `--no-publish` | bool | Don't do cargo publish right now, see [manifest `publish` field](https://doc.rust-lang.org/cargo/reference/manifest.html#the-publish--field-optional) to permanently disable publish. |
| `tag` | `--no-tag` | bool | Don't do git tag |
| `publish` | `--no-publish` | bool | Don't do cargo publish right now, see [manifest `publish` field](https://doc.rust-lang.org/cargo/reference/manifest.html#the-publish--field-optional) to permanently disable publish. |
| `rust-version` | | string | Toolchain version to use for publishing (specify `"manifest"` to use [Cargo.toml's `rust-version`](https://doc.rust-lang.org/cargo/reference/manifest.html#the-rust-version-field) |
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Should we be concerned there isn't a way to turn this off?

I'm tempted to overlay this with a bool so you can just enable/disable it. Just lazy about writing the serde logic for it.

This is a last ditch effort to catch MSRV issues.

Fixes crate-ci#380
Comment on lines +96 to +102
if let Some(toolchain_version) = toolchain_version {
formatted_toolchain_version = format!("+{}", toolchain_version);
command = vec!["cargo", &formatted_toolchain_version];
} else {
bin = cargo();
command = vec![&bin];
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Should we be concerned that we are ignoring CARGO when using the rust-version?

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.

Option to release using MSRV toolchain
1 participant