Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(deps): update module go.etcd.io/bbolt to v1.4.0 #2319

Closed
wants to merge 1 commit into from

fix(deps): update module go.etcd.io/bbolt to v1.4.0

e56aea9
Select commit
Loading
Failed to load commit list.
Closed

fix(deps): update module go.etcd.io/bbolt to v1.4.0 #2319

fix(deps): update module go.etcd.io/bbolt to v1.4.0
e56aea9
Select commit
Loading
Failed to load commit list.
Cirrus CI / Testing on fedora-41 failed Feb 6, 2025 in 33s

Task Summary

Instruction test failed in 00:18

Details

✅ 00:13 clone
❌ 00:18 test

 // KVStringer allows to prepare human-readable diagnostic messages.
 type KVStringer interface {
 	KeyToString([]byte) string
diff --git a/vendor/go.etcd.io/bbolt/unsafe.go b/vendor/go.etcd.io/bbolt/unsafe.go
deleted file mode 100644
index 7745d32c..00000000
--- a/vendor/go.etcd.io/bbolt/unsafe.go
+++ /dev/null
@@ -1,27 +0,0 @@
-package bbolt
-
-import (
-	"unsafe"
-)
-
-func unsafeAdd(base unsafe.Pointer, offset uintptr) unsafe.Pointer {
-	return unsafe.Pointer(uintptr(base) + offset)
-}
-
-func unsafeIndex(base unsafe.Pointer, offset uintptr, elemsz uintptr, n int) unsafe.Pointer {
-	return unsafe.Pointer(uintptr(base) + offset + uintptr(n)*elemsz)
-}
-
-func unsafeByteSlice(base unsafe.Pointer, offset uintptr, i, j int) []byte {
-	// See: https://github.com/golang/go/wiki/cgo#turning-c-arrays-into-go-slices
-	//
-	// This memory is not allocated from C, but it is unmanaged by Go's
-	// garbage collector and should behave similarly, and the compiler
-	// should produce similar code.  Note that this conversion allows a
-	// subslice to begin after the base address, with an optional offset,
-	// while the URL above does not cover this case and only slices from
-	// index 0.  However, the wiki never says that the address must be to
-	// the beginning of a C allocation (or even that malloc was used at
-	// all), so this is believed to be correct.
-	return (*[maxAllocSize]byte)(unsafeAdd(base, offset))[i:j:j]
-}
diff --git a/vendor/modules.txt b/vendor/modules.txt
index 0ee03e54..5ad74168 100644
--- a/vendor/modules.txt
+++ b/vendor/modules.txt
@@ -641,9 +641,12 @@ github.com/vishvananda/netlink/nl
 # github.com/vishvananda/netns v0.0.4
 ## explicit; go 1.17
 github.com/vishvananda/netns
-# go.etcd.io/bbolt v1.3.11
-## explicit; go 1.22
+# go.etcd.io/bbolt v1.4.0
+## explicit; go 1.23
 go.etcd.io/bbolt
+go.etcd.io/bbolt/errors
+go.etcd.io/bbolt/internal/common
+go.etcd.io/bbolt/internal/freelist
 # go.mongodb.org/mongo-driver v1.14.0
 ## explicit; go 1.18
 go.mongodb.org/mongo-driver/bson
������