Any way to make symlinks with Mac work in Windows?

We have a development environment in which Jenkins runs on a Mac Mini (our local build machine), makes transactions from git, and then eventually shunts things into a directory that is accessible both through web access and samba. The last step is being taken

ln -s ${GIT_COMMIT} latest

Which creates a symbolic link to the build folder of this particular commit.

Unfortunately, on Windows, when accessing through Samba, it crashes at the symlink stage, specifying "Invalid directory name." This is the same as using Windows mklink in a directory without the "/ D" (directory) option.

In windows, both symbolic links (created on Mac or Windows) are displayed as "SYMLINK" if you use this folder, whereas if you use the / D option, this symbolic link is displayed as "SYMLINKD". Both are displayed with the correct representation "[$ {GIT_COMMIT} → last]" though.

So I ask, is there a way to make Windows understand, process and follow these symbolic links, since is there any known check box when creating a symbolic link?

If this is not possible, what I noticed was that the symbolic link to "mklink / D" in the Windows directory worked on all * nix, Mac, and Windows platforms. So is there any possible way to create this character from Mac?

+4

Source: https://habr.com/ru/post/1536951/


All Articles