Skip to content

Commit 812ecbb

Browse files
committed
go.mod: use nspcc-dev/bbolt instead of go.etcd.io/bbolt
Make a complete (though temporary) fork to solve installation problems. This revision is based on Bolt 1.4.3 with patches applied from main (already merged) and etcd-io/bbolt#998. Fixes #3964. Signed-off-by: Roman Khimov <[email protected]>
1 parent bf9d0c3 commit 812ecbb

File tree

4 files changed

+6
-8
lines changed

4 files changed

+6
-8
lines changed

go.mod

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ module github.com/nspcc-dev/neo-go
22

33
go 1.23
44

5-
replace go.etcd.io/bbolt v1.4.0 => github.com/nspcc-dev/bbolt v0.0.0-20250612101626-5df2544a4a22
6-
75
require (
86
github.com/chzyer/readline v1.5.1
97
github.com/consensys/gnark v0.12.0
@@ -16,6 +14,7 @@ require (
1614
github.com/holiman/uint256 v1.3.2
1715
github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51
1816
github.com/mr-tron/base58 v1.2.0
17+
github.com/nspcc-dev/bbolt v0.0.0-20250911202005-807225ebb0c8
1918
github.com/nspcc-dev/dbft v0.4.0
2019
github.com/nspcc-dev/go-ordered-json v0.0.0-20250226190835-fb3f82b1f468
2120
github.com/nspcc-dev/neo-go/pkg/interop v0.0.0-20250827092051-0d90ffc70f57
@@ -27,7 +26,6 @@ require (
2726
github.com/syndtr/goleveldb v1.0.1-0.20210305035536-64b5b1c73954
2827
github.com/twmb/murmur3 v1.1.8
2928
github.com/urfave/cli/v2 v2.27.6
30-
go.etcd.io/bbolt v1.4.0
3129
go.uber.org/zap v1.27.0
3230
golang.org/x/crypto v0.33.0
3331
golang.org/x/term v0.29.0

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,8 @@ github.com/mr-tron/base58 v1.2.0 h1:T/HDJBh4ZCPbU39/+c3rRvE0uKBQlU27+QI8LJ4t64o=
148148
github.com/mr-tron/base58 v1.2.0/go.mod h1:BinMc/sQntlIE1frQmRFPUoPA1Zkr8VRgBdjWI2mNwc=
149149
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 h1:C3w9PqII01/Oq1c1nUAm88MOHcQC9l5mIlSMApZMrHA=
150150
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822/go.mod h1:+n7T8mK8HuQTcFwEeznm/DIxMOiR9yIdICNftLE1DvQ=
151-
github.com/nspcc-dev/bbolt v0.0.0-20250612101626-5df2544a4a22 h1:M5Nmg1iCnbZngzIBDIlMr9vW+okFfcSMBvBlXG8r+14=
152-
github.com/nspcc-dev/bbolt v0.0.0-20250612101626-5df2544a4a22/go.mod h1:AsD+OCi/qPN1giOX1aiLAha3o1U8rAz65bvN4j0sRuk=
151+
github.com/nspcc-dev/bbolt v0.0.0-20250911202005-807225ebb0c8 h1:lYMHisGPtL70vqCe/M+cU27HMZcV2PTYTaRmO7qxhMQ=
152+
github.com/nspcc-dev/bbolt v0.0.0-20250911202005-807225ebb0c8/go.mod h1:iYl+DCkSLXgVCeQWyC+kqS9V1fAQCA74JZtptwjNYpc=
153153
github.com/nspcc-dev/dbft v0.4.0 h1:4/atD4GrrMEtrYBDiZPrPzdKZ6ws7PR/cg0M4DEdVeI=
154154
github.com/nspcc-dev/dbft v0.4.0/go.mod h1:msYlF5GIGwOZ9jUIHttBAAtiqJ29jzV8PPKKv1avXAI=
155155
github.com/nspcc-dev/go-ordered-json v0.0.0-20250226190835-fb3f82b1f468 h1:qOd9/UANpXOME/3RTSa/dJoSzdVwYOkD32XQah0xj1E=

pkg/core/storage/boltdb_store.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ import (
77
"os"
88
"time"
99

10+
"github.com/nspcc-dev/bbolt"
1011
"github.com/nspcc-dev/neo-go/pkg/core/storage/dbconfig"
1112
"github.com/nspcc-dev/neo-go/pkg/io"
12-
"go.etcd.io/bbolt"
1313
)
1414

1515
// Bucket represents bucket used in boltdb to store all the data.

pkg/core/storage/boltdb_store_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ import (
66
"strings"
77
"testing"
88

9+
"github.com/nspcc-dev/bbolt"
10+
"github.com/nspcc-dev/bbolt/errors"
911
"github.com/nspcc-dev/neo-go/pkg/core/storage/dbconfig"
1012
"github.com/stretchr/testify/require"
11-
"go.etcd.io/bbolt"
12-
"go.etcd.io/bbolt/errors"
1313
)
1414

1515
func newBoltStoreForTesting(t testing.TB) Store {

0 commit comments

Comments
 (0)