Skip to content

Add go 1.19, require go 1.18, drop go 1.17 - #3514

Merged
thaJeztah merged 3 commits into
opencontainers:mainfrom
kolyshkin:go119
Aug 16, 2022
Merged

thaJeztah merged 3 commits into
opencontainers:mainfrom
kolyshkin:go119

Conversation

@kolyshkin

@kolyshkin kolyshkin commented Jun 16, 2022 •

Copy link
Copy Markdown
Contributor

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
Copy Markdown
Contributor Author

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

@AkihiroSuda

Copy link
Copy Markdown
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
Copy Markdown
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 requested review from AkihiroSuda and cyphar August 4, 2022 22:44
@kolyshkin
kolyshkin marked this pull request as ready for review August 4, 2022 22:44
@kolyshkin

Copy link
Copy Markdown
Contributor Author

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

@kolyshkin kolyshkin mentioned this pull request Aug 4, 2022
5 tasks done
@kolyshkin
kolyshkin requested a review from thaJeztah August 6, 2022 00:09
thaJeztah
thaJeztah previously approved these changes Aug 12, 2022

@thaJeztah thaJeztah left a comment

Copy link
Copy Markdown
Member

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
Copy Markdown
Contributor Author

@AkihiroSuda PTAL 🙏🏻

@thaJeztah thaJeztah left a comment

Copy link
Copy Markdown
Member

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
Copy Markdown
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