summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCasey Rodarmor <casey@rodarmor.com>2024-01-08 23:52:15 -0800
committerGitHub <noreply@github.com>2024-01-09 07:52:15 +0000
commitcf57613da74cdd896e3e2a86bd69445845af11ee (patch)
tree906740c3dc6925b154770bf97d87f7f94daeca53
parent87e368aa2db9406fc1ae80244e77567cbc7b67b7 (diff)
Add a dash to tempdir prefix (#1828)
-rwxr-xr-xjustfile6
-rw-r--r--src/recipe.rs2
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(),