-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Open
Labels
A-build-scriptsArea: build.rs scriptsArea: build.rs scriptsA-new-lintArea: new lintArea: new lintA-rebuild-detectionArea: rebuild detection and fingerprintingArea: rebuild detection and fingerprintingC-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`PerformanceGotta go fast!Gotta go fast!S-needs-mentorStatus: Issue or feature is accepted, but needs a team member to commit to helping and reviewing.Status: Issue or feature is accepted, but needs a team member to commit to helping and reviewing.
Description
I recently ran into a weird bug where my project would always rebuild main.rs even though I didn't change any of its files.
Turned out in build.rs
I had rerun-if-changed=PATH
set to a wrong PATH
, a PATH
that never was any file, which caused to trigger rebuilds every time.
Can we print a warning if the PATH
is empty, or are there cases where this could be intended?
remysucre, mattico, Dr-Emann, dennisschagt, stefnotch and 1 more
Metadata
Metadata
Assignees
Labels
A-build-scriptsArea: build.rs scriptsArea: build.rs scriptsA-new-lintArea: new lintArea: new lintA-rebuild-detectionArea: rebuild detection and fingerprintingArea: rebuild detection and fingerprintingC-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`PerformanceGotta go fast!Gotta go fast!S-needs-mentorStatus: Issue or feature is accepted, but needs a team member to commit to helping and reviewing.Status: Issue or feature is accepted, but needs a team member to commit to helping and reviewing.