Skip to content

fix: detect tools correctly on Linux#51

Open
sumant-suresh wants to merge 1 commit into
JuliusBrussee:mainfrom
sumant-suresh:fix-linux-tool-detection
Open

fix: detect tools correctly on Linux#51
sumant-suresh wants to merge 1 commit into
JuliusBrussee:mainfrom
sumant-suresh:fix-linux-tool-detection

Conversation

@sumant-suresh

Copy link
Copy Markdown

Summary

Fixes Linux tool detection in caveman doctor.

On Linux, command is a shell builtin and cannot be executed via spawnSync(). As a result, tool detection incorrectly reports installed tools such as git, tar, and curl as missing.

Example before:

[fail] Tool: git — missing
[fail] Tool: tar — missing
[fail] Tool: curl — missing
Even when all binaries are available on PATH.

Verified on Ubuntu 20.04:

git, tar, and curl available in /usr/bin
node can resolve all tools successfully
caveman doctor reports the tools correctly after the change

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant