Local code intelligence for developers and AI agents. Connect code, docs and infrastructure in a persistent graph, with CBM Lens, MCP tools, agent integrations and change-aware test selection.
C aiderastclaude-codecode-analysiscode-intelligencecodexcursorcypherdeveloper-toolsgemini-cligraph-visualizationkilocodeknowledge-graphmcpmcp-servermodel-context-protocolopencodesqlitetree-sitterwindsurf
Fix Windows CLI test DLL_NOT_FOUND failure
Martin Vogelf3c80e94ae20
diff --git a/cmd/codebase-memory-mcp/cli_test.go b/cmd/codebase-memory-mcp/cli_test.goindex 76a27a68b..61be593e1 100644--- a/cmd/codebase-memory-mcp/cli_test.go+++ b/cmd/codebase-memory-mcp/cli_test.go@@ -55,6 +55,14 @@ func testEnvWithHome(home string, extra ...string) []string {env := append(os.Environ(), "HOME="+home)if runtime.GOOS == "windows" {env = append(env, "USERPROFILE="+home)+ // On Windows, DLL lookup uses PATH. Tests that replace PATH with an+ // empty dir break DLL resolution for CGo binaries (MSYS2 libgcc etc).+ // Append the original PATH so DLLs remain findable.+ for i, e := range extra {+ if strings.HasPrefix(e, "PATH=") {+ extra[i] = e + string(os.PathListSeparator) + os.Getenv("PATH")+ }+ }}return append(env, extra...)}