client/watch_store: Ignore sources when watching

They will still be pushed as part of other paths' closures.
This commit is contained in:
Zhaofeng Li 2023-05-28 15:21:59 -06:00
parent 2d0aeefd2f
commit a71582a952

View file

@ -127,6 +127,6 @@ pub async fn run(opts: Opts) -> Result<()> {
fn strip_lock_file(p: &Path) -> Option<PathBuf> {
p.to_str()
.and_then(|p| p.strip_suffix(".lock"))
.filter(|t| !t.ends_with(".drv"))
.filter(|t| !t.ends_with(".drv") && !t.ends_with("-source"))
.map(PathBuf::from)
}