From 7214cf39ec007bf8d308930ca058ec5e7f9356d9 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Wed, 7 Jan 2026 00:18:00 +0100 Subject: [PATCH] fix: prefer home linuxbrew paths --- src/infra/brew.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/infra/brew.ts b/src/infra/brew.ts index 8690a70ac..d831bdd6e 100644 --- a/src/infra/brew.ts +++ b/src/infra/brew.ts @@ -31,12 +31,12 @@ export function resolveBrewPathDirs(opts?: { } // Linuxbrew defaults. + dirs.push(path.join(homeDir, ".linuxbrew", "bin")); + dirs.push(path.join(homeDir, ".linuxbrew", "sbin")); dirs.push( "/home/linuxbrew/.linuxbrew/bin", "/home/linuxbrew/.linuxbrew/sbin", ); - dirs.push(path.join(homeDir, ".linuxbrew", "bin")); - dirs.push(path.join(homeDir, ".linuxbrew", "sbin")); // macOS defaults (also used by some Linux setups). dirs.push("/opt/homebrew/bin", "/usr/local/bin"); @@ -60,8 +60,8 @@ export function resolveBrewExecutable(opts?: { if (prefix) candidates.push(path.join(prefix, "bin", "brew")); // Linuxbrew defaults. - candidates.push("/home/linuxbrew/.linuxbrew/bin/brew"); candidates.push(path.join(homeDir, ".linuxbrew", "bin", "brew")); + candidates.push("/home/linuxbrew/.linuxbrew/bin/brew"); // macOS defaults. candidates.push("/opt/homebrew/bin/brew", "/usr/local/bin/brew");