go mod vendor and go build error for ondisk
kolinfluence opened this issue · 0 comments
kolinfluence commented
did go mod init ondisk
go mod tidy
go mod vendor but when i did go build again i get the following error.
i'm not used to this error. possible to "fix" the ondisk example?
yes i know go build . without all the go mod stuff is working but i prefer having to work with go mod vendor
pls update the code. thx
go build .
# github.com/lni/dragonboat/v4/internal/vfs
vendor/github.com/lni/dragonboat/v4/internal/vfs/vfs.go:54:17: cannot use (*PebbleFS)(nil) (value of type *PebbleFS) as "github.com/cockroachdb/pebble/vfs".FS value in variable declaration: *PebbleFS does not implement "github.com/cockroachdb/pebble/vfs".FS (missing method OpenReadWrite)
vendor/github.com/lni/dragonboat/v4/internal/vfs/vfs.go:58:9: cannot use &PebbleFS{…} (value of type *PebbleFS) as "github.com/cockroachdb/pebble/vfs".FS value in return statement: *PebbleFS does not implement "github.com/cockroachdb/pebble/vfs".FS (missing method OpenReadWrite)
vendor/github.com/lni/dragonboat/v4/internal/vfs/vfs.go:73:9: cannot use p.fs.Create(name) (value of type "github.com/lni/vfs".File) as "github.com/cockroachdb/pebble/vfs".File value in return statement: "github.com/lni/vfs".File does not implement "github.com/cockroachdb/pebble/vfs".File (missing method Fd)
vendor/github.com/lni/dragonboat/v4/internal/vfs/vfs.go:88:13: cannot use f (variable of type "github.com/lni/vfs".File) as "github.com/cockroachdb/pebble/vfs".File value in argument to opt.Apply: "github.com/lni/vfs".File does not implement "github.com/cockroachdb/pebble/vfs".File (missing method Fd)
vendor/github.com/lni/dragonboat/v4/internal/vfs/vfs.go:90:9: cannot use f (variable of type "github.com/lni/vfs".File) as "github.com/cockroachdb/pebble/vfs".File value in return statement: "github.com/lni/vfs".File does not implement "github.com/cockroachdb/pebble/vfs".File (missing method Fd)
vendor/github.com/lni/dragonboat/v4/internal/vfs/vfs.go:95:9: cannot use p.fs.OpenDir(name) (value of type "github.com/lni/vfs".File) as "github.com/cockroachdb/pebble/vfs".File value in return statement: "github.com/lni/vfs".File does not implement "github.com/cockroachdb/pebble/vfs".File (missing method Fd)
vendor/github.com/lni/dragonboat/v4/internal/vfs/vfs.go:115:9: cannot use p.fs.ReuseForWrite(oldname, newname) (value of type "github.com/lni/vfs".File) as "github.com/cockroachdb/pebble/vfs".File value in return statement: "github.com/lni/vfs".File does not implement "github.com/cockroachdb/pebble/vfs".File (missing method Fd)