`term-transcript` assumes the location of the production binary based on the test binary - This isn't the case when a user sets `build.build-dir` (added as of Cargo 1.91) - This isn't the case if we approve the new `build-dir` layout (https://github.com/rust-lang/cargo/issues/15010) - This isn't the case if we change the `build.build-dir` default (https://github.com/rust-lang/cargo/issues/16147) This problem was identified by the following crater run: https://github.com/rust-lang/rust/pull/149852 Ways to resolve this - Switch to getting the bin path from a macro that is run in the caller's code, e.g. see [`assert_cmd::cargo::cargo_bin!`](https://docs.rs/assert_cmd/latest/src/assert_cmd/macros.rs.html#56-63) - Add a fallback using the 1.94+ runtime environment variable (https://github.com/rust-lang/cargo/pull/16421), e.g. [`assert_cmd::cargo::cargo_bin`](https://docs.rs/assert_cmd/latest/src/assert_cmd/cargo.rs.html#231-233)
term-transcriptassumes the location of the production binary based on the test binarybuild.build-dir(added as of Cargo 1.91)build-dirlayout (Re-organize build-dir by package + hash, rather than artifact type rust-lang/cargo#15010)build.build-dirdefault (Movebuild-dirout of the workspace tocargo-cache-homeby default rust-lang/cargo#16147)This problem was identified by the following crater run: rust-lang/rust#149852
Ways to resolve this
assert_cmd::cargo::cargo_bin!assert_cmd::cargo::cargo_bin