Skip to content

Commit 511529a

Browse files
committed
fix invalidate cachces
Signed-off-by: James Sturtevant <jsturtevant@gmail.com>
1 parent 198114e commit 511529a

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/wasm_sandbox/Justfile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,11 @@ guest-build-wasm: ensure-tools
2828

2929
guest-compile-wit: ensure-tools
3030
wasm-tools component wit {{repo-root}}/src/wasm_sandbox/wit/hyperlight-sandbox.wit -w -o {{repo-root}}/src/wasm_sandbox/wit/sandbox-world.wasm
31-
just _invalidate-wit-caches
3231

3332
# Invalidate cargo caches that embed the WIT signature.
3433
# Without this, cargo won't detect that sandbox-world.wasm changed
3534
# and SDKs will fail at runtime with "vector parameter missing length".
36-
_invalidate-wit-caches:
35+
invalidate-wit-caches:
3736
-{{rmrf}} {{repo-root}}/target/hyperlight-wasm-runtime
3837
-{{rmrf}} {{repo-root}}/target/hyperlight-js-runtime
3938
-{{rmrf}} {{repo-root}}/target/debug/build/hyperlight-wasm-*
@@ -54,7 +53,7 @@ guest-build-aot target=default-target: guest-build-wasm ensure-tools
5453
hyperlight-wasm-aot compile --component \
5554
{{repo-root}}/src/wasm_sandbox/guests/python/python-sandbox.wasm {{repo-root}}/src/wasm_sandbox/guests/python/python-sandbox.aot
5655

57-
guest-build target=default-target: (guest-build-wasm) (guest-compile-wit) (guest-build-aot target)
56+
guest-build target=default-target: (guest-build-wasm) (guest-compile-wit) invalidate-wit-caches (guest-build-aot target)
5857

5958
js-guest-build-wasm: (js-guest-install)
6059
cd {{repo-root}}/src/wasm_sandbox/guests/javascript && npm run build

0 commit comments

Comments
 (0)