Skip to content

[Bug] Symbolic link creation fails on windows #412

@manticorp

Description

@manticorp

SyliusPayPalPlugin version affected: 2.0.6

Description
Seems like on windows, symbolic link creation fails:

Failed to extract sylius/paypal-plugin: (2) C:\ProgramData\chocolatey\bin\7z.EXE x -bb0 -y C:\Users\harry\web\htdocs\project\vendor\composer\tmp-963e30b0352518ea68f118f828277cbe.zip -oC:\Users\harry\web\htdocs\project\vendor\composer\7c9a41f2

ERROR: Cannot create symbolic link : A required privilege is not held by the client. : C:\Users\harry\web\htdocs\project\vendor\composer\7c9a41f2\Sylius-PayPalPlugin-577418b\node_modules

    The archive may contain identical file names with different capitalization (which fails on case insensitive filesystems)
    Unzip with 7z command failed, falling back to ZipArchive class

Looks like it falls back to ZipArchive, but the symbolic link does not get recreated - it just puts a regular file there.

Steps to reproduce
I was just creating a new Sylius project on Windows using the following command:

composer create-project sylius/sylius-standard project

Possible Solution
Get rid of the symbolic link? Is it needed?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions