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.

fix(installer): ignore archive ownership on extraction

xz-dev6184bfe3e0ed
diff --git a/install.sh b/install.sh
index 3b99e7357..8b4459736 100755
--- a/install.sh
+++ b/install.sh
@@ -225,7 +225,7 @@ echo "Extracting..."
if [ "$EXT" = "zip" ]; then
unzip -q "$DLDIR/$ARCHIVE" -d "$DLDIR"
else
- tar -xzf "$DLDIR/$ARCHIVE" -C "$DLDIR"
+ tar --no-same-owner -xzf "$DLDIR/$ARCHIVE" -C "$DLDIR"
fi
DLBIN="$DLDIR/codebase-memory-mcp"
diff --git a/tests/test_smoke_fixture_contract.sh b/tests/test_smoke_fixture_contract.sh
index b202f967d..af702fa5e 100755
--- a/tests/test_smoke_fixture_contract.sh
+++ b/tests/test_smoke_fixture_contract.sh
@@ -137,6 +137,11 @@ for relative, source in (
# Unix fixtures mirror the release archive surface and Linux update aliases.
for name in ("LICENSE", "install.sh", "THIRD_PARTY_NOTICES.md"):
require(name in smoke_local, f"smoke-local.sh archive must include {name}")
+install_script = read("install.sh")
+require(
+ 'tar --no-same-owner -xzf "$DLDIR/$ARCHIVE" -C "$DLDIR"' in install_script,
+ "install.sh must not preserve release-builder ownership when extracting tar archives",
+)
# One composition ships, so there is one archive name and no variant alias.
require(
"codebase-memory-mcp-${OS}-${ARCH}.tar.gz" in smoke_local