Skip to content

Commit d1b61c9

Browse files
Clear checksum cache
1 parent 9700e9c commit d1b61c9

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/build_manifest.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@ impl<'a> BuildManifest<'a> {
3737
})
3838
}
3939

40+
pub(crate) fn clear_checksum_cache(&self) -> Result<(), Error> {
41+
std::fs::remove_file(&self.checksum_cache_path)?;
42+
Ok(())
43+
}
44+
4045
pub(crate) fn run(&self, upload_base: &str, dest: &Path) -> Result<Execution, Error> {
4146
let config = &self.builder.config;
4247

src/main.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,9 @@ impl Context {
206206
// produced in the earlier step so we'll need to re-run the manifest building.
207207
self.recompress(&self.dl_dir())?;
208208

209+
// Since we recompressed, need to clear out the checksum cache.
210+
build_manifest.clear_checksum_cache()?;
211+
209212
// Now generate the real manifests, pointing to the public download endpoint. This will
210213
// also generate a cache of all the checksums generated by build-manifest.
211214
let execution = build_manifest.run(

0 commit comments

Comments
 (0)