From cf57613da74cdd896e3e2a86bd69445845af11ee Mon Sep 17 00:00:00 2001 From: Casey Rodarmor Date: Mon, 8 Jan 2024 23:52:15 -0800 Subject: [PATCH] Add a dash to tempdir prefix (#1828) --- justfile | 6 +++--- src/recipe.rs | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/justfile b/justfile index 6b057fe9..2ce7833b 100755 --- a/justfile +++ b/justfile @@ -10,6 +10,9 @@ log := "warn" export JUST_LOG := log +watch +args='test': + cargo watch --clear --exec '{{ args }}' + test: cargo test @@ -36,9 +39,6 @@ build: fmt: cargo fmt --all -watch +COMMAND='test': - cargo watch --clear --exec "{{COMMAND}}" - man: cargo build --features help4help2man help2man \ diff --git a/src/recipe.rs b/src/recipe.rs index 01aa273f..30e9d9ed 100644 --- a/src/recipe.rs +++ b/src/recipe.rs @@ -306,7 +306,7 @@ impl<'src, D> Recipe<'src, D> { })?; let mut tempdir_builder = tempfile::Builder::new(); - tempdir_builder.prefix("just"); + tempdir_builder.prefix("just-"); let tempdir = match &context.settings.tempdir { Some(tempdir) => tempdir_builder.tempdir_in(context.search.working_directory.join(tempdir)), None => tempdir_builder.tempdir(),