summaryrefslogtreecommitdiffstats
path: root/src/watch/digests.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/watch/digests.rs')
-rw-r--r--src/watch/digests.rs10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/watch/digests.rs b/src/watch/digests.rs
index c67d60e..8136850 100644
--- a/src/watch/digests.rs
+++ b/src/watch/digests.rs
@@ -48,7 +48,15 @@ pub fn resolve_sources(
kind: entry.vcs.clone().unwrap_or_else(|| "vcs".into()),
digest,
size: 0,
- skip_declared: true,
+ // Computed from the recipe like every other entry (m-19), not
+ // hardcoded: the field answers "did the recipe give us a
+ // checksum?", and for a VCS source the answer is usually yes-by-
+ // absence — which is why renderers must ask `is_vcs` before
+ // calling it a missing checksum.
+ skip_declared: match declared_sums(recipe, entry.index) {
+ Some(d) => d == SKIP || !is_hex_digest(&d),
+ None => true,
+ },
});
continue;
}