问题
go.mod 声明模块为 github.com/NeverENG/BanDB,但约 40% 的 .go 文件使用小写 github.com/NeverENG/bandb 导入。
使用 BanDB(正确)的文件
config/global.go, network/banNet/{connection,server,ConnManager}.go, service/{fsm,router,fsm_test}.go, storage/{engine,zstorage/memtable,zstorage/SSTable,zstorage/WAL,...}.go, Raft/raft.go
使用 bandb(错误)的文件
client/client.go, network/banNet/{DataPack,message,msgHandle,request,router}.go, Server/{server,server_pprof}.go
影响
- 当前分支
fix/importPath 已尝试修复但尚未完成
- 可能导致 IDE 无法正确解析引用、
go mod tidy 行为异常
预期
- 全局替换
github.com/NeverENG/bandb → github.com/NeverENG/BanDB
- 确保
go build ./... 和 go test ./... 全部通过
问题
go.mod声明模块为github.com/NeverENG/BanDB,但约 40% 的.go文件使用小写github.com/NeverENG/bandb导入。使用
BanDB(正确)的文件config/global.go, network/banNet/{connection,server,ConnManager}.go, service/{fsm,router,fsm_test}.go, storage/{engine,zstorage/memtable,zstorage/SSTable,zstorage/WAL,...}.go, Raft/raft.go
使用
bandb(错误)的文件client/client.go, network/banNet/{DataPack,message,msgHandle,request,router}.go, Server/{server,server_pprof}.go
影响
fix/importPath已尝试修复但尚未完成go mod tidy行为异常预期
github.com/NeverENG/bandb→github.com/NeverENG/BanDBgo build ./...和go test ./...全部通过