Skip to content

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.

Statically link Windows binary to fix missing DLL error

Martin Vogel26f686550cdd
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index a12363189..59f7481cc 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -116,7 +116,7 @@ jobs:
# Strip leading 'v' — version var should be bare semver (e.g. 0.4.0)
CLEAN_VERSION="${VERSION#v}"
CGO_ENABLED=1 CC=gcc go build \
- -ldflags "-X main.version=$CLEAN_VERSION" \
+ -ldflags "-X main.version=$CLEAN_VERSION -extldflags '-static'" \
-o codebase-memory-mcp.exe \
./cmd/codebase-memory-mcp/