Skip to content

Test binary is looked up in unit tests which relies on internals of Cargo and will break with existing / upcoming features #65

Description

@epage

Tests assumes the location of build artifacts

You can reproduce this by running either:

$ cargo +nightly test -Zbuild-dir-new-layout
$ CARGO_BUILD_BUILD_DIR=build cargo test

Move the tests and possibly upgrade the underlying testing library (assert_cmd, snapbox, etc). If manually implementing binary lookup and needing to update the implementation, see assert_cmd::cargo::cargo_bin for an example.

This problem was identified by the following crater run: rust-lang/rust#149852

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions