Skip to content

Commit

Permalink
Merge pull request #97 from simongdavies/fix-cache-bindle-assets
Browse files Browse the repository at this point in the history
fix issue with caching bindle assets
  • Loading branch information
simongdavies committed Jul 8, 2021
2 parents da17547 + 2e0517e commit 4711a3a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/runtime/bindle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ pub async fn invoice_to_modules(
let purl = parcel_url(&bindle_id, member.label.sha256.clone());
trace!(parcel = %purl, "converting a parcel to an asset");
let puri = purl.parse().unwrap();
let cached_path = cache_parcel_asset(
cache_parcel_asset(
&bindler,
&puri,
asset_cache.clone(),
Expand All @@ -422,7 +422,7 @@ pub async fn invoice_to_modules(
if def.volumes.is_none() {
let mut volumes = HashMap::new();
volumes
.insert("/".to_owned(), cached_path.to_str().unwrap().to_owned());
.insert("/".to_owned(), asset_cache.to_str().unwrap().to_owned());
def.volumes = Some(volumes);
}
trace!("Done with conversion");
Expand Down

0 comments on commit 4711a3a

Please sign in to comment.