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.19, require go 1.18, drop go 1.17 #3514

Merged
merged 3 commits into from
Aug 16, 2022

Conversation

kolyshkin
Copy link
Contributor

@kolyshkin kolyshkin commented Jun 16, 2022

This makes go 1.18 a minimally required version, removing go 1.17 from and adding go 1.19 to CI.

Also:

@kolyshkin
Copy link
Contributor Author

OK, it seems to be working fine, except for golangci-lint (filed golangci/golangci-lint#2922)

@AkihiroSuda
Copy link
Member

1.19 is GA now

@kolyshkin kolyshkin changed the title ci: add go 1.19beta1 Add go 1.19, require go 1.18, drop go 1.17 Aug 3, 2022
@kolyshkin
Copy link
Contributor Author

Alas we have to wait for a new golangci-lint release that has golangci/golangci-lint#2922 fixed. The fix is already merged but no release has been made yet (I guess it will be v1.48).

@kolyshkin kolyshkin force-pushed the go119 branch 2 times, most recently from 8e8aefe to f2116d5 Compare August 4, 2022 22:38
@kolyshkin kolyshkin marked this pull request as ready for review August 4, 2022 22:44
@kolyshkin
Copy link
Contributor Author

Since I've already marked 1.19.x CI tests as required, can we please merge this? @opencontainers/runc-maintainers PTAL

thaJeztah
thaJeztah previously approved these changes Aug 12, 2022
Copy link
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

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

LGTM

Since Go 1.19, godoc recognizes lists, code blocks, headings etc. It
also reformats the sources making it more apparent that these features
are used.

Fix a few places where it misinterpreted the formatting (such as
indented vs unindented), and format the result using the gofumpt
from HEAD, which already incorporates gofmt 1.19 changes.

Some more fixes (and enhancements) might be required.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
This version works with go 1.19, i.e. it fixes
golangci/golangci-lint#2922.

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

@AkihiroSuda PTAL 🙏🏻

Copy link
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

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

LGTM

@thaJeztah thaJeztah merged commit 7b6f515 into opencontainers:main Aug 16, 2022
@thaJeztah
Copy link
Member

@kolyshkin are you updating the repo settings? ("add test (1.19.x) to required list of tests (once this is merged)")

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