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

Replaced deprecated cargo --all flag with --workspace flag #71

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Replaced deprecated cargo --all flag with --workspace flag #71

wants to merge 1 commit into from

Conversation

SamedhG
Copy link

@SamedhG SamedhG commented Dec 4, 2019

Cargo check -h shows that the --all flag has been depreacated and replaced with the --workspace flag. Also rust-lang/cargo#5015 shows hat the --no-default-features is currently broken so we thought that this part of the pipeline should be deleted (at least until this gets fixed) from the cargo-check.yml file.

@djc
Copy link
Contributor

djc commented Dec 4, 2019

So I suppose this should be parametrized on the Rust version? Otherwise old Rust versions won't work. Otherwise looks okay to me.

displayName: Check compilation w/ default features
- script: cargo check --all --bins --examples --tests --no-default-features
Copy link
Contributor

Choose a reason for hiding this comment

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

What about for crates where --all evaluates to one crate?

@@ -29,14 +29,12 @@ jobs:
- script: cargo check --locked
condition: and(succeeded(), eq(variables.is_locked, 'true'))
displayName: Check that Cargo.lock is satisfiable
- script: cargo check --all --bins --examples --tests
- script: cargo check --workspace --bins --examples --tests
Copy link
Contributor

Choose a reason for hiding this comment

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

As djc mentioned, we support pinning to older Rust versions, particularly for MSRV validation. I think the simpler approach is for us to keep using --all until either they plan to remove it or until the Rust version is so old we don't care about supporting it still.

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.

3 participants