diff --git a/host/tests/it/extensions.rs b/host/tests/it/extensions.rs index b883942..3d53ddf 100644 --- a/host/tests/it/extensions.rs +++ b/host/tests/it/extensions.rs @@ -53,7 +53,7 @@ async fn commits_and_restart() -> anyhow::Result<()> { "sausage-archive-tools", "--manifest-path" ]) - .arg(userland.join("Cargo.toml")) + .arg(userland.join("../Cargo.toml")) .args(["--target", "wasm32-wasip2", "--target-dir"]) .arg(target) .args(["-j", "2", "--locked"]) diff --git a/host/tests/it/harness_api.rs b/host/tests/it/harness_api.rs index 350710c..fbc62cf 100644 --- a/host/tests/it/harness_api.rs +++ b/host/tests/it/harness_api.rs @@ -30,7 +30,7 @@ fn prepare(dir: &Path) -> anyhow::Result<()> { "sausage-archive-tools", "--manifest-path" ]) - .arg(userland.join("Cargo.toml")) + .arg(source.join("Cargo.toml")) .args(["--target", "wasm32-wasip2", "--target-dir"]) .arg(target) .args(["-j", "2", "--locked"]) diff --git a/userland/bundle.nu b/userland/bundle.nu index 947bc25..9cde1c1 100644 --- a/userland/bundle.nu +++ b/userland/bundle.nu @@ -1,7 +1,7 @@ #!/usr/bin/env nu # Build independent commands and plain source files. World creation initializes their repository. def main [destination?: path] { - let here = $env.FILE_PWD + let here = ($env.FILE_PWD | path expand) let destination = ($destination | default ($here | path join .. target userland bundle) | path expand) let bin = ($destination | path join bin) let object = ($here | path join cwd-init init.o)