Skip to content

fix: resolve executable against PATH instead of cwd on Windows #1919

Description

@iankhou

Describe the bug

On Windows, programs will prefer executables in the current working directory over those in path e.g. a node.exe file in the working directory. This is not the intended behavior, and can cause problems when the developer expects to use executables in their PATH.

Regression Issue

  • Select this option if this issue appears to be a regression.

Last Known Working CDK Version

No response

Expected Behavior

Prefer executables on PATH over cwd.

Current Behavior

Searches for executables in cwd before consulting PATH.

Reproduction Steps

N/A.

Possible Solution

No response

Additional Information/Context

No response

CDK CLI Version

N/A

Framework Version

No response

Node.js Version

All

OS

Windows

Language

TypeScript

Language Version

No response

Other information

No response

Activity

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

Metadata

Metadata

Assignees

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions