8000 [Filesystem] mirroring a symlink copies absolute file path · Issue #15118 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content
[Filesystem] mirroring a symlink copies absolute file path #15118
Closed
@danepowell

Description

@danepowell

When using mirror(), I would expect that relative symlinks stay relative after they are copied, but instead they are converted to absolute references to the source directory.

For instance, given this symlink in the source directory:
/source/bin/behat -> ../vendor/behat/behat
(implicitly /source/bin/behat -> /source/vendor/behat/behat)

After mirroring that directory, the expected result is:
/target/bin/behat -> ../vendor/behat/behat
(implicitly /target/bin/behat -> /target/vendor/behat/behat)

But the actual result is:
/target/bin/behat -> /source/vendor/behat/behat

This was originally fixed in #9866, and then regressed in a8b8d33

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0