Skip to content

Cargo is not rebuilding a project that has been modified #8868

@jyn514

Description

@jyn514

Problem

When I modify a file in the project, it is not rebuilt. Instead cargo thinks the project is fresh and uses a cached copy. I know it's wrong to do this because a fresh build (with a different toolchain) gives a compile error.

Steps

I am not sure how to reproduce this in isolation. I'm modifying a file in deadlinks/cargo-deadlinks@f3857e1, then running cargo run.

I double-checked the last-modified date of main.rs and it says 19:39; the binary was built at 19:01.

Notes

Output of cargo version: cargo 1.47.0 (f3c7e066a 2020-08-28)

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-rebuild-detectionArea: rebuild detection and fingerprintingC-bugCategory: bugS-triageStatus: This issue is waiting on initial triage.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions