mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
docs: adjust contributing.md: remove need for --all (--workspace)
It is no longer needed to add `--all` (which is an alias for `--workspace`). The documentation says "Commands run in the workspace root will run against all workspace members by default" [0]. We however still need `--tests` as this activates the building of tests in `<crate>/tests` directories. [0] https://doc.rust-lang.org/cargo/reference/workspaces.html#virtual-workspace Signed-off-by: Philipp Schuster <philipp.schuster@cyberus-technology.de> On-behalf-of: SAP philipp.schuster@sap.com
This commit is contained in:
committed by
Rob Bradford
parent
9979e562b2
commit
3191ff26e1
@@ -21,11 +21,11 @@ convention and enforce it through the Continuous Integration (CI) process callin
|
|||||||
|
|
||||||
```sh
|
```sh
|
||||||
# We currently rely on nightly-only formatting features
|
# We currently rely on nightly-only formatting features
|
||||||
cargo +nightly fmt --all
|
cargo +nightly fmt --all
|
||||||
cargo check --all --all-targets --tests
|
cargo check --all-targets --tests
|
||||||
cargo clippy --all --all-targets --tests
|
cargo clippy --all-targets --tests
|
||||||
# Please note that this will not execute integration tests.
|
# Please note that this will not execute integration tests.
|
||||||
cargo test --all --all-targets --tests
|
cargo test --all-targets --tests
|
||||||
|
|
||||||
# To lint your last three commits
|
# To lint your last three commits
|
||||||
gitlint --commits "HEAD~3..HEAD"
|
gitlint --commits "HEAD~3..HEAD"
|
||||||
@@ -49,8 +49,8 @@ have specific features that you regularly develop against.
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
cargo +nightly fmt --all -- --check || exit 1
|
cargo +nightly fmt --all -- --check || exit 1
|
||||||
cargo check --locked --all --all-targets --tests || exit 1
|
cargo check --locked --all-targets --tests || exit 1
|
||||||
cargo clippy --locked --all --all-targets --tests -- -D warnings || exit 1
|
cargo clippy --locked --all-targets --tests -- -D warnings || exit 1
|
||||||
```
|
```
|
||||||
|
|
||||||
You will need to `chmod +x .git/hooks/pre-commit` to have it run on every
|
You will need to `chmod +x .git/hooks/pre-commit` to have it run on every
|
||||||
|
|||||||
Reference in New Issue
Block a user