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
Existing symlinks that were created by an administrator account, or with the
52
-
"Developer Mode" enabled, can be used and deleted by normal users without rights
52
+
"Developer Mode" enabled, can be used and deleted by normal users without the right
53
53
to create symlinks themselves.
54
54
55
-
Compare to Unix symlinks, the Windows symlinks come in a "directory" and a
55
+
Compared to Unix symlinks, the Windows symlinks come in a "directory" and a
56
56
"file" type. If you create a file symlink to a directory, or vice versa, or if
57
57
the target type changes after the symlink is created, the symlink will be
58
58
broken.
@@ -90,14 +90,20 @@ version of Powershell](https://winget.run/pkg/Microsoft/PowerShell), use mklink
90
90
via `cmd /c mklink`, or use an elevated prompt. You can check your Powershell
91
91
version with `$PSVersionTable.PSVersion`.
92
92
93
+
There also exist other types of links on Windows, like hardlinks and junctions,
94
+
which don't require special privileges to create, but have more limitations:
95
+
96
+
*[Hardlinks](https://learn.microsoft.com/en-us/windows/win32/fileio/hard-links-and-junctions#hard-links) (`mklink /h`) can only be created for files and only on the same filesystem, among other limitations.
97
+
*[Junctions](https://learn.microsoft.com/en-us/windows/win32/fileio/hard-links-and-junctions#junctions) (`mklink /j`) can only be created for directories and can't use relative paths, among other limitations.
98
+
93
99
## Known Issues
94
100
95
-
As stated above, for the deep-copy to work the target needs to exist for the
96
-
symlinking to work. While dangling symlinks are not that common, they can happen
97
-
easily when unpacking a tar file that contains symlinks. If the symlinks is
98
-
unpacked before the target, then creating the symlink will fail. A workaround
99
-
for this is to unpack the tar file twice, first to create the target while
100
-
ignoring any symlink creation errors and then to create the symlinks:
101
+
For the default `winsymlinks:deepcopy` mode in MSYS2 the target needs to exist
102
+
for the symlinking to work. While dangling symlinks are not that common, they
103
+
can happen easily when unpacking a tar file that contains symlinks. If the
104
+
symlinks is unpacked before the target, then creating the symlink will fail. A
105
+
workaround for this is to unpack the tar file twice, first to create the target
106
+
while ignoring any symlink creation errors and then to create the symlinks:
0 commit comments