From a49a892ae2369d2802d7f6569f23db5f8d8916c4 Mon Sep 17 00:00:00 2001 From: Ivan FB Date: Wed, 15 Jul 2026 18:02:40 +0200 Subject: [PATCH] fix: build the static library with the nimble dep paths The static branch of buildLibrary passes --skipParentCfg:on, which drops the config.nims that pulls in nimble.paths, so every nimble-resolved import fails to resolve (`cannot open file: chronicles`). It went unnoticed because deps used to be vendored submodules and only the dynamic build is exercised in CI; the Rust bindings consume the static library. Co-Authored-By: Claude Opus 4.8 --- logos_delivery.nimble | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/logos_delivery.nimble b/logos_delivery.nimble index 8c4d32cb5..c79e3eced 100644 --- a/logos_delivery.nimble +++ b/logos_delivery.nimble @@ -112,7 +112,7 @@ proc buildLibrary(lib_name: string, srcDir = "./", params = "", `type` = "static if `type` == "static": exec "nim c" & " --out:build/" & lib_name & - " --threads:on --app:staticlib --opt:speed --noMain --mm:refc --header -d:metrics --nimMainPrefix:" & mainPrefix & " --skipParentCfg:on -d:discv5_protocol_id=d5waku " & + " --threads:on --app:staticlib --opt:speed --noMain --mm:refc --header -d:metrics --nimMainPrefix:" & mainPrefix & " --skipParentCfg:off -d:discv5_protocol_id=d5waku " & getMyCPU() & getNimParams() & srcDir & "/" & srcFile else: exec "nim c" & " --out:build/" & lib_name &