Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge diverging findExecutable functions #228373

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

tobil4sk
Copy link
Contributor

These two functions were mostly the same but they were out of sync, so some patches were missing from one, resulting in task execution bugs that only affected Mac/Linux: #158914.

Patch missing from win32.findExecutable:

Patch missing from findExecutable:

Patch missing from win32.findExecutable:
- microsoft@e52382a

Patch missing from findExecutable:
- microsoft@9bc292a
Due to the previous change, this path.join ended up joining two absolute
paths in some cases.

findExecutable now returns undefined if the path does not exist, even if
it is absolute. So it is no longer correct to assume that `command` was
relative if `foundExecutable` is undefined.
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.

Process tasks can attempt to execute directories on Linux
3 participants