-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Documented working directory behaviour for cargo test
, cargo bench
and cargo run
#11901
Conversation
r? @epage (rustbot has picked a reviewer for you, use r? to override) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Thank you for making this PR.
… cargo-run commands
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! This definitely makes the current situation better. Go ahead and merge!
@bors r+ |
☀️ Test successful - checks-actions |
Update cargo 9 commits in 145219a9f089f8b57c09f40525374fbade1e34ae..0e474cfd7b16b018cf46e95da3f6a5b2f1f6a9e7 2023-03-27 01:56:36 +0000 to 2023-03-31 23:15:58 +0000 - Add delays to network retries. (rust-lang/cargo#11881) - Add a note to `cargo logout` that it does not revoke the token. (rust-lang/cargo#11919) - Sync external-tools JSON docs. (rust-lang/cargo#11918) - Drop derive feature from serde in cargo-platform (rust-lang/cargo#11915) - Disable test_profile test on windows-gnu (rust-lang/cargo#11916) - src/doc/src/reference/build-scripts.md: a{n =>} benchmark target (rust-lang/cargo#11908) - Documented working directory behaviour for `cargo test`, `cargo bench` and `cargo run` (rust-lang/cargo#11901) - docs(contrib): Link to office hours doc (rust-lang/cargo#11903) - chore: Upgrade to clap v4.2 (rust-lang/cargo#11904)
Fixes #11852. Updated the respective man-pages of
cargo test
,cargo bench
andcargo run
to include the information of the working directory of the executables. Added a comment in the code ofcargo run
where the default behaviour (the package's root directory) is overridden.