Skip to content

Commit

Permalink
Merge pull request #3137 from wasmerio/fix-tarball-download
Browse files Browse the repository at this point in the history
Fix cache path not being present during installation of cross-tarball
  • Loading branch information
syrusakbary authored Aug 25, 2022
2 parents 6b199f9 + a869dae commit d4a888a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/cli/src/commands/create_exe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -984,6 +984,7 @@ mod http_fetch {
.expect("Could not join downloading thread");
match super::get_libwasmer_cache_path() {
Ok(mut cache_path) => {
let _ = std::fs::create_dir_all(&cache_path);
cache_path.push(&filename);
if !cache_path.exists() {
if let Err(err) = std::fs::copy(&filename, &cache_path) {
Expand Down

0 comments on commit d4a888a

Please sign in to comment.