diff --git a/go.mod b/go.mod index 40a1176..f2e4cf8 100644 --- a/go.mod +++ b/go.mod @@ -2,9 +2,9 @@ module github.com/kmcsr/server-installer go 1.20 -require github.com/kmcsr/go-logger v1.2.1 - require ( - github.com/sirupsen/logrus v1.9.2 // indirect - golang.org/x/sys v0.0.0-20220919091848-fb04ddd9f9c8 // indirect + github.com/kmcsr/go-logger v1.2.1 + golang.org/x/sys v0.0.0-20220919091848-fb04ddd9f9c8 ) + +require github.com/sirupsen/logrus v1.9.2 // indirect diff --git a/rename_windows.go b/rename_windows.go index 1cb31b0..64ba25b 100644 --- a/rename_windows.go +++ b/rename_windows.go @@ -5,12 +5,14 @@ package installer import ( "errors" "syscall" + + "golang.org/x/sys/windows" ) func crossDevice(err error) bool { var sysErr syscall.Errno if errors.As(err, &sysErr) { - return err == syscall.EXDEV || err == syscall.ERROR_NOT_SAME_DEVICE + return err == syscall.EXDEV || err == windows.ERROR_NOT_SAME_DEVICE } return false }