Skip to content

Commit 4711a3a

Browse files
authored
Merge pull request #97 from simongdavies/fix-cache-bindle-assets
fix issue with caching bindle assets
2 parents da17547 + 2e0517e commit 4711a3a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/runtime/bindle.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ pub async fn invoice_to_modules(
402402
let purl = parcel_url(&bindle_id, member.label.sha256.clone());
403403
trace!(parcel = %purl, "converting a parcel to an asset");
404404
let puri = purl.parse().unwrap();
405-
let cached_path = cache_parcel_asset(
405+
cache_parcel_asset(
406406
&bindler,
407407
&puri,
408408
asset_cache.clone(),
@@ -422,7 +422,7 @@ pub async fn invoice_to_modules(
422422
if def.volumes.is_none() {
423423
let mut volumes = HashMap::new();
424424
volumes
425-
.insert("/".to_owned(), cached_path.to_str().unwrap().to_owned());
425+
.insert("/".to_owned(), asset_cache.to_str().unwrap().to_owned());
426426
def.volumes = Some(volumes);
427427
}
428428
trace!("Done with conversion");

0 commit comments

Comments
 (0)