Skip to content

relative target-dirs cause spurious rebuilds #1694

@metajack

Description

@metajack

If you have two packages in a repo and wish to use shared target dirs to avoid rebuilds, you might use relative target-dir specs (one in each package) to do this by setting them to ../target or something.

This causes cargo to rebuild everything, probably because it sees the two target dirs as `/path/to/package_a/../target" and "/path/to/package_b/../target".

Right now you can workaround this by using absolute paths through the CARGO_TARGET_DIR environment var.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions