File: 0001-Replace-github.com-boltdb-bolt-with-go.etcd.io-bbolt.patch

package info (click to toggle)
golang-github-micromdm-scep 2.3.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 404 kB
  • sloc: makefile: 50; sh: 27
file content (86 lines) | stat: -rw-r--r-- 2,371 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
Forwarded: https://github.com/micromdm/scep/pull/242
From: Simon Josefsson <simon@josefsson.org>
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