From a869daea916863cb63e6fcebe955417aebd3b5b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Sch=C3=BCtt?= Date: Wed, 24 Aug 2022 18:07:35 +0200 Subject: [PATCH] Fix cache path not being present during installation of cross-tarball --- lib/cli/src/commands/create_exe.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/cli/src/commands/create_exe.rs b/lib/cli/src/commands/create_exe.rs index ff0d20f905f..9756b9102fd 100644 --- a/lib/cli/src/commands/create_exe.rs +++ b/lib/cli/src/commands/create_exe.rs @@ -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) {