You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wanted to create Symlinks that would work on my local machine and in a VM, so I was happy to see the addition of relative symlinks.
However, I have found that the solution added in #567 does not work. The target used is relative to the root of the project folder, not relative the to the link being created.
The link the is created is dest/index.php -> src/index.php but this is wrong for a symlink, it should be dest/index.php -> ../src/index.php.
For relative links to work the depth of the link from the project base needs to be calculated and the correct number of ../ added to the front of target. I have created an initial WIP, but this may need more work to refine possible use cases.
The text was updated successfully, but these errors were encountered:
The recommendation to include ${project.basedir} at the start of the link path makes this more complicated also the use of an absolute path for the source means that this would not work in my example of the symlinks working inside a VM.
I am wondering if there is already a function in the Phing dependencies that will calculate a relative path?
I wanted to create Symlinks that would work on my local machine and in a VM, so I was happy to see the addition of relative symlinks.
However, I have found that the solution added in #567 does not work. The target used is relative to the root of the project folder, not relative the to the link being created.
If in this example ther is a file index.php:
The link the is created is
dest/index.php -> src/index.php
but this is wrong for a symlink, it should bedest/index.php -> ../src/index.php
.For relative links to work the depth of the link from the project base needs to be calculated and the correct number of
../
added to the front of target. I have created an initial WIP, but this may need more work to refine possible use cases.The text was updated successfully, but these errors were encountered: