Bug: default store directory does not respect CARGO_TARGET_DIR
#2066
Labels
bug
Something isn't working
CARGO_TARGET_DIR
#2066
Description of the issue
Description:
Nextest always tries to create the store directory at the workspace root, which fails if the workspace is read-only.
Steps to reproduce:
target
directory is clean (or at leasttarget/nextest
does not exist)CARGO_TARGET_DIR
. :docker run --rm -e CARGO_TARGET_DIR=/target -v "$(pwd):/checkout:ro" -it rust bash
cargo install cargo-nextest
cd /checkout
cargo test
. This should workcargo nextest run
. This fails with something like:Expected outcome
By default, rather than using a path relative to the workspace root, nextest should create its store directory within
CARGO_TARGET_DIR
if it is set.Actual result
Unable to create the file (see above)
Nextest version
Additional context
No response
The text was updated successfully, but these errors were encountered: