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

[release/1.5] Upgrade Go to 1.17 and golangci-lint #6719

Merged
merged 4 commits into from
Mar 23, 2022

Conversation

dmcgowan
Copy link
Member

Backport of #6666

The GitHub Action is unstable especially on Windows (see containerd#6618).
This change may not address the issue itself, but using the latest
version makes reporting the upstream the issue easier.

Signed-off-by: Kazuyoshi Kato <katokazu@amazon.com>
(cherry picked from commit 622a35a)
Signed-off-by: Derek McGowan <derek@mcg.dev>
@@ -1,3 +1,4 @@
//go:build !windows
Copy link
Member

Choose a reason for hiding this comment

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

This branch is still on go1.16, so looks like these changes must be reverted 😞

Error: File is not `gofmt`-ed with `-s` (gofmt)
Error: File is not `gofmt`-ed with `-s` (gofmt)
Error: File is not `gofmt`-ed with `-s` (gofmt)

Not sure which file this is complaining about though 😞 let me try running it locally

Warning: error-strings: error strings should not be capitalized or end with punctuation or a newline (revive)
Warning: error-strings: error strings should not be capitalized or end with punctuation or a newline (revive)

Signed-off-by: Derek McGowan <derek@mcg.dev>
@thaJeztah
Copy link
Member

@dmcgowan this looks to be the one for the error-message;

archive/tar.go:373:24: error-strings: error strings should not be capitalized or end with punctuation or a newline (revive)
		return errors.Errorf("unhandled tar header type %d\n", hdr.Typeflag)
		                     ^

Signed-off-by: Derek McGowan <derek@mcg.dev>
Signed-off-by: Derek McGowan <derek@mcg.dev>
@theopenlab-ci
Copy link

theopenlab-ci bot commented Mar 23, 2022

Build succeeded.

@dmcgowan dmcgowan changed the title [release/1.5] Upgrade golangci-lint and its GitHub Action [release/1.5] Upgrade Go to 1.17 and golangci-lint Mar 23, 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.

SGTM

Copy link
Member

@samuelkarp samuelkarp left a comment

Choose a reason for hiding this comment

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

+433 −4,951

Wow.

LGTM though.

@dmcgowan dmcgowan merged commit 85b9bc9 into containerd:release/1.5 Mar 23, 2022
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.

None yet

4 participants