Skip to content

Build Script rerun determination not transitive. #2280

@Parakleta

Description

@Parakleta

Without the rerun-if-changed setting a build script will automatically be rerun if anything in the crate tree has changed. However, this test is not performed by crates that depend on this crate.

The situation I have is an application that depends on a library where I am developing both together. If I change a file used by the build.rs in the library the application will not automatically rebuild unless I also touch the build.rs file. If I add the rerun-if-changed output in the library build script then the rebuild occurs in the application as desired, but this triggers issue #2261.

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