Commit e602ba3
committed
Use directory symlink instead of junction for Dev Drive
`bundle.TestRootLookup` (unit test) called `filepath.EvalSymlinks` on
its `t.TempDir()` path, which landed under the `C:\a\_fast` directory
junction. Go's stdlib EvalSymlinks on Windows returns
"cannot find the path specified" for `IO_REPARSE_TAG_MOUNT_POINT`
(junctions) rooted at a newly mounted ReFS VHDX, but handles
`IO_REPARSE_TAG_SYMLINK` (directory symlinks) correctly.
Switching `New-Item -ItemType Junction` to `cmd /c mklink /D`
(directory symbolic link) to dodge the quirk. Symlinks require
Developer Mode, which is the default on GitHub-hosted Windows
runners.
Co-authored-by: Isaac1 parent 2caaa88 commit e602ba3
1 file changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
51 | 56 | | |
52 | 57 | | |
53 | 58 | | |
| |||
0 commit comments