-
Notifications
You must be signed in to change notification settings - Fork 9
Windows relative symlinks falling back to junction don't work. #33
Comments
I can't test on Windows (beyond running CI) so I would appreciate any help on this. |
I think I might be running into this issue. @BSick7 Does this mean if I do this |
@jdaudier I can't confirm this, but it appears that symlink creates a relative symlink by default. This would break on windows if the command is not run in an admin context. |
@BSick7 Can you explain what you mean by |
@jdaudier By default, a new command prompt is not run under admin rights. Usually, a user has to right click on command prompt and click |
Since
…I would recommend that this gulp plugin, in order to be cross-platform, should:
|
This module has now been deprecated. https://github.com/ben-eb/gulp-symlink#deprecation-notice |
If a windows symlink fails (usually because of non-admin terminal), gulp-symlink falls back to using junctions. However, if trying to create a relative symlink, this will fail for junctions as well (http://ss64.com/nt/mklink.html).
A nicer error message would help diagnose this issue. Perhaps, if there is a permission issue and relative, report just that: "Relative symlinks require admin privileges."
The text was updated successfully, but these errors were encountered: