From 361cfffb323bfbe34b2981ce9551031e634fefb5 Mon Sep 17 00:00:00 2001 From: Surma Date: Sat, 7 Nov 2026 20:58:10 +0000 Subject: [PATCH] world: keep symlinks when copying the bundle (broken esbuild link; from T59, its test follows with T59) --- host/src/world.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/host/src/world.rs b/host/src/world.rs index 6e6a5b6..a08c29e 100644 --- a/host/src/world.rs +++ b/host/src/world.rs @@ -24,7 +24,9 @@ fn copy_tree(source: &Path, destination: &Path) -> std::io::Result<()> { for entry in std::fs::read_dir(source)? { let entry = entry?; let target = destination.join(entry.file_name()); - if entry.file_type()?.is_dir() { + if entry.file_type()?.is_symlink() { + std::os::unix::fs::symlink(std::fs::read_link(entry.path())?, &target)?; + } else if entry.file_type()?.is_dir() { copy_tree(&entry.path(), &target)?; } else { std::fs::copy(entry.path(), target)?;