go-nfs icon indicating copy to clipboard operation
go-nfs copied to clipboard

build on windows 10 fail

Open jackyzjk opened this issue 4 years ago • 1 comments

Hello,I clone go-nfs on windows 10,then execute go run ./example/osview .,but it failed,the errors as follows:

$ go run ./example/osview .
go: downloading github.com/willscott/memphis v0.0.0-20201122065000-f2beb41b6be3
go: downloading github.com/go-git/go-billy/v5 v5.3.1
go: downloading github.com/hashicorp/golang-lru v0.5.4
go: downloading github.com/rasky/go-xdr v0.0.0-20170124162913-1a41d1a06c93
go: downloading github.com/willscott/go-nfs-client v0.0.0-20200605172546-271fa9065b33
go: downloading github.com/polydawn/rio v0.0.0-20201122020833-6192319df581
go: downloading github.com/warpfork/go-errcat v0.0.0-20180917083543-335044ffc86e
go: downloading github.com/polydawn/go-timeless-api v0.0.0-20201121022836-7399661094a6
go: downloading github.com/polydawn/refmt v0.0.0-20190807091052-3d65705ee9f1
# github.com/willscott/memphis
C:\Users\LENOVO\go\pkg\mod\github.com\willscott\[email protected]\deferred.go:20:31: undefined:
syscall.Stat_t
C:\Users\LENOVO\go\pkg\mod\github.com\willscott\[email protected]\deferred.go:23:21: undefined:
createTime
C:\Users\LENOVO\go\pkg\mod\github.com\willscott\[email protected]\deferred.go:57:30: undefined:
syscall.Stat_t
C:\Users\LENOVO\go\pkg\mod\github.com\willscott\[email protected]\deferred.go:60:18: undefined:
createTime

jackyzjk avatar May 31 '21 05:05 jackyzjk

I don't have regular access to a windows machine. The memphis library does not have a windows variant, as you've noticed. The osnfs example does not use that library and should work - as should all of the code in go-nfs. Memphis provides an alternative file system backing for use with deterministic virtual file systems, but makes use of environments that expect to be running within linux.

willscott avatar May 31 '21 15:05 willscott