Skip to content

Commit f424ff1

Browse files
committed
build: update go to 1.24
Signed-off-by: Pierre-Henri Symoneaux <[email protected]>
1 parent 464ad0d commit f424ff1

File tree

5 files changed

+11
-4
lines changed

5 files changed

+11
-4
lines changed

.github/actions/setup-build-env/action.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ runs:
77
- name: Set up Go
88
uses: actions/setup-go@v4
99
with:
10-
go-version: "1.23"
10+
go-version: "1.24"

.github/workflows/build.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,6 @@ jobs:
5353
# Require: The version of golangci-lint to use.
5454
# When `install-mode` is `binary` (default) the value can be v1.2 or v1.2.3 or `latest` to use the latest version.
5555
# When `install-mode` is `goinstall` the value can be v1.2.3, `latest`, or the hash of a commit.
56-
version: v1.60
56+
version: v1.64
5757
# args: --build-tags yubikey
5858
args: --timeout 3m

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ It supports both REST API and KMIP protocol.
3232
<!-- TOC --><a name="prerequisites"></a>
3333
# Prerequisites
3434

35-
1. Go 1.23
35+
1. Go 1.24
3636
2. **(Optional)** In linux, install libpcsc-dev if building with yubikey support enabled
3737

3838
<!-- TOC --><a name="build"></a>

common/utils/int.go

+7
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,13 @@ func ToInt32[N Integer](n N) int32 {
2121
return int32(n)
2222
}
2323

24+
func ToUint64[N Integer](n N) uint64 {
25+
if n < 0 {
26+
panic("Integer overflow: must not be negative")
27+
}
28+
return uint64(n)
29+
}
30+
2431
// func ToUint32[N Integer](n N) uint32 {
2532
// if n < 0 || uint64(n) > math.MaxUint32 {
2633
// panic("Integer overflow")

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/ovh/okms-cli
22

3-
go 1.23.0
3+
go 1.24.0
44

55
require (
66
github.com/go-piv/piv-go/v2 v2.3.0

0 commit comments

Comments
 (0)