Close out the repository audit
This commit is contained in:
12
internal/testutil/symlink_windows.go
Normal file
12
internal/testutil/symlink_windows.go
Normal file
@@ -0,0 +1,12 @@
|
||||
//go:build windows
|
||||
|
||||
package testutil
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"syscall"
|
||||
)
|
||||
|
||||
func platformSymlinkUnavailable(err error) bool {
|
||||
return errors.Is(err, syscall.ERROR_PRIVILEGE_NOT_HELD)
|
||||
}
|
||||
Reference in New Issue
Block a user