Skip to content

修复 import 路径不一致:统一为 BanDB #21

@NeverENG

Description

@NeverENG

问题

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 行为异常

预期

  1. 全局替换 github.com/NeverENG/bandbgithub.com/NeverENG/BanDB
  2. 确保 go build ./...go test ./... 全部通过

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions