Skip to content

Commit 6c633da

Browse files
committed
quote() paths in justfile
This makes some recipes work on Windows, and on other systems if there are wunusual paths, that had previously broken in those scenarios. That includes the default recipe.
1 parent 7255a5f commit 6c633da

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

justfile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# like a script, with `./justfile test`, for example.
44

55
default:
6-
{{ just_executable() }} --list
6+
{{ quote(just_executable()) }} --list
77

88
alias t := test
99
alias c := check
@@ -192,10 +192,10 @@ unit-tests-flaky:
192192
cargo test -p gix --features async-network-client-async-std
193193

194194
target_dir := `cargo metadata --format-version 1 | jq -r .target_directory`
195-
ein := target_dir / "debug/ein"
196-
gix := target_dir / "debug/gix"
197-
jtt := target_dir / "debug/jtt"
198-
it := target_dir / "debug/it"
195+
ein := quote(target_dir / "debug/ein")
196+
gix := quote(target_dir / "debug/gix")
197+
jtt := quote(target_dir / "debug/jtt")
198+
it := quote(target_dir / "debug/it")
199199

200200
# run journey tests (max)
201201
journey-tests:
@@ -258,7 +258,7 @@ find-yanked:
258258
# Find shell scripts whose +x/-x bits and magic bytes (e.g. `#!`) disagree
259259
check-mode:
260260
cargo build -p internal-tools
261-
"{{ it }}" check-mode
261+
{{ it }} check-mode
262262

263263
# Delete gix-packetline-blocking/src and regenerate from gix-packetline/src
264264
copy-packetline:

0 commit comments

Comments
 (0)