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

Bump to Go 1.24 and account for the new crypto/rand behaviour. #37

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

atheriel
Copy link
Collaborator

@atheriel atheriel commented Feb 24, 2025

As of Go 1.24, Go itself aborts rather than return an error from cryto/rand. This means that the unit tests we have for this edge case abort immediately, and so this commit removes them.

Several internal APIs no longer need to return errors as a result, either.

Public APIs that return an error cannot be changed, but they now document when they will never do so.

This commit also moves us to using Go's new tool directive, which should improve release automation since we no longer rely on folks to read the Makefile to figure out how to install the right helper binaries.

As of Go 1.24, Go itself aborts rather than return an error from
`cryto/rand`. This means that the unit tests we have for this edge case
abort immediately, and so this commit removes them.

Several internal APIs no longer need to return errors as a result,
either.

Public APIs that return an error cannot be changed, but they now
document when they will never do so.

This commit also moves us to using Go's new `tools` directive, which
should improve release automation since we no longer rely on folks to
read the `Makefile` to figure out how to install the right helper
binaries.

Signed-off-by: Aaron Jacobs <[email protected]>
@atheriel atheriel changed the title Go 1.24 Bump to Go 1.24 and account for the new crypto/rand behaviour. Feb 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant