Skip to content

Commit 1bd0a79

Browse files
Copilotsimongdavies
andcommitted
Fix just clean command for Windows compatibility and missing directory handling
Co-authored-by: simongdavies <[email protected]> Signed-off-by: Simon Davies <[email protected]>
1 parent 4a8910c commit 1bd0a79

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Justfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ clean-rust:
6060
cd src/tests/rust_guests/simpleguest && cargo clean
6161
cd src/tests/rust_guests/dummyguest && cargo clean
6262
cd src/tests/rust_guests/callbackguest && cargo clean
63-
cd src/tests/rust_guests/witguest && cargo clean
64-
cd src/tests/rust_guests/witguest && rm -f interface.wasm
63+
{{ if os() == "windows" { "cd src/tests/rust_guests/witguest -ErrorAction SilentlyContinue; cargo clean" } else { "[ -d src/tests/rust_guests/witguest ] && cd src/tests/rust_guests/witguest && cargo clean || true" } }}
64+
{{ if os() == "windows" { "Remove-Item src/tests/rust_guests/witguest/interface.wasm -Force -ErrorAction SilentlyContinue" } else { "rm -f src/tests/rust_guests/witguest/interface.wasm" } }}
6565
git clean -fdx src/tests/c_guests/bin src/tests/rust_guests/bin
6666

6767
################

0 commit comments

Comments
 (0)