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(computer): compare macOS temporary paths after resolving symlinks
shoudi zheng93ef28999528
diff --git a/apps/computer/local-daemon/internal/linger/localtools/installation_test.go b/apps/computer/local-daemon/internal/linger/localtools/installation_test.goindex f8d55a35..d92cdf77 100644--- a/apps/computer/local-daemon/internal/linger/localtools/installation_test.go+++ b/apps/computer/local-daemon/internal/linger/localtools/installation_test.go@@ -229,7 +229,12 @@ func TestWindowsInstalledToolsUseExtractedBundle(t *testing.T) {// The Desktop app runs the daemon from resources/computer/ and packages the// tools as resources/cli/computer-tools and resources/runtime.func TestInstalledToolsInTheDesktopLayout(t *testing.T) {- resources := t.TempDir()+ // Installed resolves symlinks, and on macOS the temporary directory sits+ // behind the /var symlink.+ resources, err := filepath.EvalSymlinks(t.TempDir())+ if err != nil {+ t.Fatal(err)+ }executable := filepath.Join(resources, "computer", "linger-computer-daemon")if got := ToolsDirectory(executable); got != filepath.Join(resources, "cli", "computer-tools") {t.Fatalf("tools directory = %s", got)diff --git a/apps/computer/local-daemon/internal/localmodels/fake_tool_test.go b/apps/computer/local-daemon/internal/localmodels/fake_tool_test.goindex 7ee9bb1d..cd21e1a2 100644--- a/apps/computer/local-daemon/internal/localmodels/fake_tool_test.go+++ b/apps/computer/local-daemon/internal/localmodels/fake_tool_test.go@@ -104,7 +104,12 @@ type fakeTool struct {func newFakeTool(t *testing.T) *fakeTool {t.Helper()- root := t.TempDir()+ // The tool reports its working directory as the OS resolves it, and on+ // macOS the temporary directory sits behind the /var symlink.+ root, err := filepath.EvalSymlinks(t.TempDir())+ if err != nil {+ t.Fatal(err)+ }executable, err := os.Executable()if err != nil {t.Fatal(err)