search for: fe742f2b

Displaying 1 result from an estimated 1 matches for "fe742f2b".

Did you mean: fe742f24
2023 Aug 11
2
[libnbd PATCH] golang: Bump minimum Go version to 1.17
...+++ b/golang/configure/go.mod @@ -1,4 +1,4 @@ module libguestfs.org/configure -// First version of golang with working module support. -go 1.13 +// First version of golang with working module support and unsafe.Slice. +go 1.17 diff --git a/golang/configure/test.go b/golang/configure/test.go index fe742f2b..a15c9ea3 100644 --- a/golang/configure/test.go +++ b/golang/configure/test.go @@ -25,8 +25,19 @@ import ( "fmt" "runtime" + "unsafe" ) +func check_slice(arr *uint32, cnt int) []uint32 { + /* We require unsafe.Slice(), introduced in 1.17 */ + ret := make([]uint3...