Skip to content

Commit

Permalink
Create directory beforehand.
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeMathWalker committed Dec 10, 2023
1 parent 9212953 commit c507d7a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libs/pavex_cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,8 @@ fn scaffold_project(path: PathBuf) -> Result<ExitCode, Box<dyn std::error::Error

let target_directory =
std::env::temp_dir().join(format!("pavex-template-{}", env!("VERGEN_GIT_SHA")));
fs_err::create_dir_all(&target_directory)
.context("Failed to create a temporary directory for Pavex's template")?;
TEMPLATE_DIR
.extract(&target_directory)
.context("Failed to save Pavex's template to a temporary directory")?;
Expand Down

0 comments on commit c507d7a

Please sign in to comment.