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

Add Go 1.22 and 1.23, rm old versions, bump CI actions, bump golangci-linter #776

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

kolyshkin
Copy link
Contributor

@kolyshkin kolyshkin commented Aug 15, 2024

Mostly a CI refresh. See commits for details.

Closes: #769

@kolyshkin kolyshkin requested a review from a team as a code owner August 15, 2024 06:44
Found by golangci-lint v1.60.1:

cmd/oci-runtime-tool/main.go:59:17: printf: non-constant format string in call to github.com/sirupsen/logrus.Fatalf (govet)
		logrus.Fatalf(err.Error())
		              ^

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
Go 1.23 is released, making Go 1.21 (and older version) unsupported.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
@kolyshkin
Copy link
Contributor Author

@opencontainers/runtime-tools-maintainers PTAL

@@ -44,14 +44,14 @@ jobs:
strategy:
fail-fast: false
matrix:
go-version: [1.19.x, 1.20.x]
go-version: [1.22.x, 1.23.x]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should still include 1.19 here for go.mod, right? Or do something clever with the go-version-file: support in setup-go?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure it makes sense to test on older Go releases, unless we explicitly want to maintain compatibility with older Go versions (and for now I don't know a reason to do that).

go version in go.mod will raise naturally once we'll start using newer features.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Besides, we're switching to go 1.21 as a minimum in #777

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it be ok to use;

The last 2 being the currently supported versions, and the min version to verify that the minimum version specified in go.mod isn't lying.

@kolyshkin
Copy link
Contributor Author

@opencontainers/runtime-tools-maintainers PTAL 🙏🏻

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.

3 participants