Skip to content

Vendor's directory separator is not trimmed on Windows #796

@skmedix

Description

@skmedix

Affected line:
https://github.com/symfony/flex/blob/main/src/Flex.php#L534

Relative path to the vendor is outputed as vendor/, and should be trimmed from / but DIRECTORY_SEPARATOR on Windows is defined as \.

So when package.json is synchronized, resulted dependency path has duplicated slash like:
file:vendor//symfony/ux-turbo/Resources/assets

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