Forwarded: https://github.com/micromdm/scep/pull/242 From: Simon Josefsson Date: Wed, 26 Mar 2025 11:45:42 +0100 Subject: [PATCH] Replace github.com/boltdb/bolt with go.etcd.io/bbolt. --- challenge/bolt/challenge.go | 2 +- challenge/challenge_bolt_test.go | 2 +- depot/bolt/depot.go | 4 ++-- depot/bolt/depot_test.go | 2 +- server/service_bolt_test.go | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/challenge/bolt/challenge.go b/challenge/bolt/challenge.go index 111705a..88ceb56 100644 --- a/challenge/bolt/challenge.go +++ b/challenge/bolt/challenge.go @@ -5,7 +5,7 @@ import ( "encoding/base64" "fmt" - "github.com/boltdb/bolt" + bolt "go.etcd.io/bbolt" "github.com/pkg/errors" ) diff --git a/challenge/challenge_bolt_test.go b/challenge/challenge_bolt_test.go index 281d6f2..8598661 100644 --- a/challenge/challenge_bolt_test.go +++ b/challenge/challenge_bolt_test.go @@ -9,7 +9,7 @@ import ( challengestore "github.com/micromdm/scep/v2/challenge/bolt" scepserver "github.com/micromdm/scep/v2/server" - "github.com/boltdb/bolt" + bolt "go.etcd.io/bbolt" "github.com/smallstep/scep" ) diff --git a/depot/bolt/depot.go b/depot/bolt/depot.go index cdeee81..f27acf5 100644 --- a/depot/bolt/depot.go +++ b/depot/bolt/depot.go @@ -12,11 +12,11 @@ import ( "github.com/micromdm/scep/v2/depot" - "github.com/boltdb/bolt" + bolt "go.etcd.io/bbolt" ) // Depot implements a SCEP certifiacte store using boltdb. -// https://github.com/boltdb/bolt +// https://go.etcd.io/bbolt type Depot struct { *bolt.DB serialMu sync.RWMutex diff --git a/depot/bolt/depot_test.go b/depot/bolt/depot_test.go index 34a9e94..7accff0 100644 --- a/depot/bolt/depot_test.go +++ b/depot/bolt/depot_test.go @@ -7,7 +7,7 @@ import ( "reflect" "testing" - "github.com/boltdb/bolt" + bolt "go.etcd.io/bbolt" ) // createDepot creates a Bolt database in a temporary location. diff --git a/server/service_bolt_test.go b/server/service_bolt_test.go index 66ae329..558a468 100644 --- a/server/service_bolt_test.go +++ b/server/service_bolt_test.go @@ -19,7 +19,7 @@ import ( boltdepot "github.com/micromdm/scep/v2/depot/bolt" scepserver "github.com/micromdm/scep/v2/server" - "github.com/boltdb/bolt" + bolt "go.etcd.io/bbolt" "github.com/smallstep/scep" ) -- 2.49.0