From 075ce0bc0787031b5b6a67032790eab045b319ee Mon Sep 17 00:00:00 2001 From: udo Date: Fri, 17 Jul 2026 23:00:17 +0000 Subject: [PATCH] Pass normalized component paths to freshness checks --- src/lib/compiler.h | 2 +- src/wasm/worker.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/compiler.h b/src/lib/compiler.h index 8e84725..97c8a30 100644 --- a/src/lib/compiler.h +++ b/src/lib/compiler.h @@ -27,7 +27,7 @@ StringList compiler_list_known_units(Request* context); void compiler_set_known_units(Request* context, StringList files); void compiler_track_known_unit(Request* context, String file_name); void compiler_untrack_known_unit(Request* context, String file_name); -bool compiler_unit_needs_recompile(Request* context, String file_name, bool* source_missing = 0, bool allow_recent_source_stat = false); +bool compiler_unit_needs_recompile(Request* context, String file_name, bool* source_missing = 0, bool allow_recent_source_stat = false, bool path_is_normalized = false); DValue unit_info(String path = ""); StringList units_list(); bool unit_compile(String path = ""); diff --git a/src/wasm/worker.cpp b/src/wasm/worker.cpp index 2bb27d5..9c6244a 100644 --- a/src/wasm/worker.cpp +++ b/src/wasm/worker.cpp @@ -2210,7 +2210,7 @@ private: now - cached_freshness->second.checked_at).count() >= 1000; if(check_freshness) { - stale = compiler_unit_needs_recompile(context, resolved, 0, can_serve_stale && read_request); + stale = compiler_unit_needs_recompile(context, resolved, 0, can_serve_stale && read_request, true); worker.component_freshness[resolved] = { now, stale }; } else