Replace bolt dependency with bbolt (#6387)

There are some dependencies that still depends on the unmaintained bolt after
https://github.com/seaweedfs/seaweedfs/pull/3554. Replace it so that we can
have one less dependency, and build on newer architecture like RISC-V.

Two lines of `replace` are required because Go refuses to replace
`github.com/boltdb/bolt` with `go.etcd.io/bbolt` when the latter is also
present in the dependency tree. Replace it again with
`github.com/etcd-io/bbolt` solves the issue.
This commit is contained in:
Eric Long
2024-12-24 17:48:37 +08:00
committed by GitHub
parent 9b9101b46b
commit e4d0dce904
2 changed files with 7 additions and 2 deletions

5
go.mod
View File

@@ -369,3 +369,8 @@ require (
)
// replace github.com/seaweedfs/raft => /Users/chrislu/go/src/github.com/seaweedfs/raft
replace (
github.com/boltdb/bolt => go.etcd.io/bbolt v1.3.10
go.etcd.io/bbolt => github.com/etcd-io/bbolt v1.3.10
)