lni / dragonboat

A feature complete and high performance multi-group Raft library in Go.
Apache License 2.0
4.98k stars 533 forks source link

Missing VFS lib when building #343

Open jeremyhahn opened 4 months ago

jeremyhahn commented 4 months ago

Dragonboat version

v3.3.4

Expected behavior

Able to run go get

Actual behavior

Running go get produces the following error: go: finding module for package github.com/lni/goutils/vfs go: github.com/myrepo/myproject/cluster imports github.com/lni/dragonboat/v3 imports github.com/lni/dragonboat/v3/internal/logdb imports github.com/lni/goutils/vfs: module github.com/lni/goutils@latest found (v1.4.0), but does not contain package github.com/lni/goutils/vfs

Steps to reproduce the behavior

Empty go.mod and run go get

kevburnsjr commented 1 month ago

I also noticed this while attempting to build old versions of dragonboat-example to compare historical performance.

I never understood why it was happening though, because dragonboat 3.3.* is supposed to be pinned to goutils v1.3.0 https://github.com/lni/dragonboat/blob/v3.3.4/go.mod#L10

jeremyhahn commented 1 month ago

I believe the root issue is that Dragonboat is using an old version of Pebble, and the solution is to support the latest version.