Skip to content

Commit

Permalink
build: update go to 1.24
Browse files Browse the repository at this point in the history
Signed-off-by: Pierre-Henri Symoneaux <[email protected]>
  • Loading branch information
phsym committed Feb 14, 2025
1 parent 464ad0d commit f424ff1
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/actions/setup-build-env/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ runs:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: "1.23"
go-version: "1.24"
2 changes: 1 addition & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,6 @@ jobs:
# Require: The version of golangci-lint to use.
# When `install-mode` is `binary` (default) the value can be v1.2 or v1.2.3 or `latest` to use the latest version.
# When `install-mode` is `goinstall` the value can be v1.2.3, `latest`, or the hash of a commit.
version: v1.60
version: v1.64
# args: --build-tags yubikey
args: --timeout 3m
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ It supports both REST API and KMIP protocol.
<!-- TOC --><a name="prerequisites"></a>
# Prerequisites

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

<!-- TOC --><a name="build"></a>
Expand Down
7 changes: 7 additions & 0 deletions common/utils/int.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,13 @@ func ToInt32[N Integer](n N) int32 {
return int32(n)
}

func ToUint64[N Integer](n N) uint64 {
if n < 0 {
panic("Integer overflow: must not be negative")
}
return uint64(n)
}

// func ToUint32[N Integer](n N) uint32 {
// if n < 0 || uint64(n) > math.MaxUint32 {
// panic("Integer overflow")
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/ovh/okms-cli

go 1.23.0
go 1.24.0

require (
github.com/go-piv/piv-go/v2 v2.3.0
Expand Down

0 comments on commit f424ff1

Please sign in to comment.