diff --git a/crates/ghostlight/src/vault.rs b/crates/ghostlight/src/vault.rs index 0b7f6c8..f69381c 100644 --- a/crates/ghostlight/src/vault.rs +++ b/crates/ghostlight/src/vault.rs @@ -267,6 +267,8 @@ impl VaultSnapshot { .map_err(|_| VaultError::Store)?; } std::fs::rename(&partial, &path).map_err(|_| VaultError::Store)?; + // The store leaves its lock sidecar beside the file it created. + let _ = std::fs::remove_file(directory.join(format!("{}.cc.partial.lock", self.id))); Ok(ImportOutcome::Imported(self.id.clone())) }