Skip to content

PHP discovery on Windows uses current drive instead of system drive #16

Open
@supervirus

Description

@supervirus

Currently the function systemDir in discovery_windows.go return the current drive instead of the system drive.
For the majority of the developers this is no problem, as they only use a single drive for both Windows and projects.
In the future this can change, as Microsoft pushes developers to use DevDrives.

The system drive is available in the environment variable SystemDrive.
Using this environment variable instead of the current drive would reflect the behaviour of the Composer Windows installer, which the discovery is based on.

Affected version:
Symfony CLI version 5.8.11

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions