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

Switch CI to Go 1.23 #826

Open
sashabaranov opened this issue Aug 13, 2024 · 0 comments
Open

Switch CI to Go 1.23 #826

sashabaranov opened this issue Aug 13, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@sashabaranov
Copy link
Owner

Go 1.23 introduced a very useful to us go vet analyzer that would allow us to check compatibility with all Go versions this library supports (down to Go 1.18!)

The go vet subcommand now includes the stdversion analyzer, which flags references to symbols that are too new for the version of Go in effect in the referring file. (The effective version is determined by the go directive in the file’s enclosing go.mod file, and by any //go:build constraints in the file.)

For example, it will report a diagnostic for a reference to the reflect.TypeFor function (introduced in go1.22) from a file in a module whose go.mod file specifies go 1.21.

https://go.dev/doc/go1.23#vet

@sashabaranov sashabaranov added the enhancement New feature or request label Aug 13, 2024
@sashabaranov sashabaranov changed the title Switch to Go 1.23 Switch CI to Go 1.23 Aug 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant