Skip to content

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

Merged
dmcgowan merged 4 commits intocontainerd:release/1.5from
dmcgowan:backport-1.5-6666
Mar 23, 2022
Merged

[release/1.5] Upgrade Go to 1.17 and golangci-lint#6719
dmcgowan merged 4 commits intocontainerd:release/1.5from
dmcgowan:backport-1.5-6666

Conversation

@dmcgowan
Copy link
Copy Markdown
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 <[email protected]>
(cherry picked from commit 622a35a)
Signed-off-by: Derek McGowan <[email protected]>
Comment thread defaults/defaults_unix.go
@@ -1,3 +1,4 @@
//go:build !windows
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.

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)

@dmcgowan dmcgowan force-pushed the backport-1.5-6666 branch from e2ada75 to db21cdf Compare March 23, 2022 21:01
Signed-off-by: Derek McGowan <[email protected]>
@thaJeztah
Copy link
Copy Markdown
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)
		                     ^

@dmcgowan dmcgowan force-pushed the backport-1.5-6666 branch from db21cdf to bc4c147 Compare March 23, 2022 21:05
Signed-off-by: Derek McGowan <[email protected]>
Signed-off-by: Derek McGowan <[email protected]>
@dmcgowan dmcgowan force-pushed the backport-1.5-6666 branch from fab5aad to 7f03aea Compare March 23, 2022 21:29
@theopenlab-ci
Copy link
Copy Markdown

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

4 participants