Skip to content

Commit e4422ee

Browse files
CodyRayclaude
andauthored
fix(desktop): find linuxbrew node for the WSL backend (pingdotgg#7827)
Co-authored-by: Claude Fable 5 <[email protected]>
1 parent b954af6 commit e4422ee

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

‎packages/ssh/src/tunnel.test.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,7 @@ describe("ssh tunnel scripts", () => {
227227
assert.include(script, "remote_node_satisfies_engine()");
228228
assert.include(script, "function satisfiesSemverRange");
229229
assert.include(script, "satisfiesSemverRange(rawVersion, range)");
230+
assert.include(script, 'prepend_path_if_dir "/home/linuxbrew/.linuxbrew/bin"');
230231
assert.include(script, 'prepend_path_if_dir "$VOLTA_HOME/bin"');
231232
assert.include(script, 'prepend_path_if_dir "$HOME/.asdf/shims"');
232233
assert.include(script, 'prepend_path_if_dir "$HOME/.local/share/mise/shims"');

‎packages/ssh/src/tunnel.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,7 @@ ensure_remote_node_path() {
360360
prepend_path_if_dir "$HOME/.local/bin"
361361
prepend_path_if_dir "$HOME/bin"
362362
prepend_path_if_dir "/opt/homebrew/bin"
363+
prepend_path_if_dir "/home/linuxbrew/.linuxbrew/bin"
363364
prepend_path_if_dir "/usr/local/bin"
364365
prepend_path_if_dir "/usr/bin"
365366
prepend_path_if_dir "/bin"

0 commit comments

Comments
 (0)