Skip to content

Commit bf7d646

Browse files
committed
Reverting to Syncthing's Windows symlink workaround for the time being as SYMBOLIC_LINK_FLAG_ALLOW_UNPRIVILEGED_CREATE is not yet implemented in Go's implementation for Window's symlinks as of 1.9.2 - golang/go#22874
Signed-off-by: Nicholas Rishel <[email protected]>
1 parent 8b35853 commit bf7d646

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/scanner/walk_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ func TestWalkRootSymlink(t *testing.T) {
378378

379379
link := tmp + "/link"
380380
dest, _ := filepath.Abs("testdata/dir1")
381-
if err := os.Symlink(dest, link); err != nil {
381+
if err := osutil.DebugSymlinkForTestsOnly(dest, link); err != nil {
382382
if runtime.GOOS == "windows" {
383383
// Probably we require permissions we don't have.
384384
t.Skip("Need admin permissions or developer mode to run symlink test on Windows: " + err.Error())

0 commit comments

Comments
 (0)