From 74bb660b9799e79e31c33d96a4f06d77094287d5 Mon Sep 17 00:00:00 2001 From: pyranota <92104930+pyranota@users.noreply.github.com> Date: Fri, 24 Jan 2025 17:32:29 +0300 Subject: [PATCH] fix(bun, windows): Fix "A required privilege is not held by the client." (#5126) --- backend/windmill-worker/src/bun_executor.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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| {