Add a dash to tempdir prefix (#1828)

This commit is contained in:
Casey Rodarmor 2024-01-08 23:52:15 -08:00 committed by GitHub
parent 87e368aa2d
commit cf57613da7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -10,6 +10,9 @@ log := "warn"
export JUST_LOG := log export JUST_LOG := log
watch +args='test':
cargo watch --clear --exec '{{ args }}'
test: test:
cargo test cargo test
@ -36,9 +39,6 @@ build:
fmt: fmt:
cargo fmt --all cargo fmt --all
watch +COMMAND='test':
cargo watch --clear --exec "{{COMMAND}}"
man: man:
cargo build --features help4help2man cargo build --features help4help2man
help2man \ help2man \

View File

@ -306,7 +306,7 @@ impl<'src, D> Recipe<'src, D> {
})?; })?;
let mut tempdir_builder = tempfile::Builder::new(); let mut tempdir_builder = tempfile::Builder::new();
tempdir_builder.prefix("just"); tempdir_builder.prefix("just-");
let tempdir = match &context.settings.tempdir { let tempdir = match &context.settings.tempdir {
Some(tempdir) => tempdir_builder.tempdir_in(context.search.working_directory.join(tempdir)), Some(tempdir) => tempdir_builder.tempdir_in(context.search.working_directory.join(tempdir)),
None => tempdir_builder.tempdir(), None => tempdir_builder.tempdir(),