diff --git a/backend/windmill-worker/src/bun_executor.rs b/backend/windmill-worker/src/bun_executor.rs index dfe9c5b328..77bad32a5d 100644 --- a/backend/windmill-worker/src/bun_executor.rs +++ b/backend/windmill-worker/src/bun_executor.rs @@ -906,7 +906,7 @@ pub async fn handle_bun_job( #[cfg(windows)] { target = format!("{job_dir}\\main.js"); - symlink = std::os::windows::fs::symlink_dir(&local_path, &target); + symlink = std::fs::hard_link(&local_path, &target); } symlink.map_err(|e| {