Skip to content

rerun-if-changed always trigger rebuild on non-exist file #4213

Closed
@bozaro

Description

@bozaro

Original cause: bozaro/lz4-rs#21

Root cause:

  • I use skeptic for file README.md
  • Skeptic generate some code and tell to cargo:
cargo:rerun-if-changed=README.md
cargo:rerun-if-changed=README.md.skt.md
  • File README.md.skt.md is not presend in my project and cargo always rerun build.

I would expect that the restart will only happen if README.md.skt.md file appears.

Unfortunatelly, adding check for file exists in Skeptic is incorrect, because it should rerun if file appears at some time.

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