Linger is An Open-Source Personal Agent That Runs Fully on Your PC. We aim to break Big Tech’s grip on AI by bringing powerful local AI to everyday computers through efficient model–harness co-design, so everyone can run their own.
test(local-installation): run the initdb tests as a non-root user
shoudi zheng4c907cac0180
diff --git a/packages/local-installation/src/native-database.test.ts b/packages/local-installation/src/native-database.test.tsindex 87916436..5d5f6eb2 100644--- a/packages/local-installation/src/native-database.test.ts+++ b/packages/local-installation/src/native-database.test.ts@@ -131,6 +131,10 @@ describe("prepareNativeDatabase on Windows", () => {});describe("prepareNativeDatabase initdb", () => {+ // The root guard refuses initdb, and CI containers often run as root.+ beforeEach(() => {+ Object.defineProperty(process, "getuid", { ...getuid, value: () => 1000 });+ });const data = path.join(instance.root, "native/postgres-data");const pending = `${data}.partial`;const pgdata = () =>