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

build: update go to 1.24 #37

Merged
merged 1 commit into from
Feb 14, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
Loading