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

Options for running commands on a specified range of versions of cargo #93

Closed
taiki-e opened this issue Nov 19, 2020 · 4 comments · Fixed by #102
Closed

Options for running commands on a specified range of versions of cargo #93

taiki-e opened this issue Nov 19, 2020 · 4 comments · Fixed by #102
Assignees
Labels
A-version Area: --rust-version, --version-range, --version-step C-enhancement Category: A new feature or an improvement for an existing one

Comments

@taiki-e
Copy link
Owner

taiki-e commented Nov 19, 2020

This may be useful for catching issues like BurntSushi/termcolor#35, rust-lang/regex#685, rayon-rs/rayon#761 (comment), rust-lang/rust-clippy#6324.

Examples

something like:

$ cargo hack check --version-range 1.36..stable
info: running `cargo +1.36.0 check`
...
info: running `cargo +1.37.0 check`
...
...
info: running `cargo +1.47.0 check`
...
info: running `cargo +1.48.0 check` (current stable)
...

with specified step:

$ cargo hack check --version-range 1.36..stable --version-step 2
info: running `cargo +1.36.0 check`
...
info: running `cargo +1.38.0 check`
...
...
info: running `cargo +1.46.0 check`
...
info: running `cargo +1.48.0 check` (current stable)
...
@taiki-e taiki-e added the C-enhancement Category: A new feature or an improvement for an existing one label Nov 19, 2020
@taiki-e taiki-e changed the title Options for running commands on a specified range of versions of toolchain Options for running commands on a specified range of versions of cargo Nov 19, 2020
@jhpratt
Copy link
Contributor

jhpratt commented Nov 28, 2020

Would this take point releases into account? It's probably not strictly necessary.

@taiki-e
Copy link
Owner Author

taiki-e commented Nov 28, 2020

I would like to use rustup's major.minor channels. (i.e., point releases do not take into account, and always select the latest patch version of each minor version)

@jhpratt
Copy link
Contributor

jhpratt commented Nov 28, 2020

Ah, advantages of the new rustup release!

@taiki-e taiki-e self-assigned this Dec 4, 2020
@bors bors bot closed this as completed in 65b3653 Dec 5, 2020
@bors bors bot closed this as completed in #102 Dec 5, 2020
@taiki-e
Copy link
Owner Author

taiki-e commented Dec 6, 2020

Published in 0.5.0 (#102)

@taiki-e taiki-e added the A-version Area: --rust-version, --version-range, --version-step label Dec 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-version Area: --rust-version, --version-range, --version-step C-enhancement Category: A new feature or an improvement for an existing one
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants