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

Update Go to 1.19.3, golangci-lint to 1.50.1 #810

Merged
merged 3 commits into from
Nov 8, 2022

Conversation

tklauser
Copy link
Member

@tklauser tklauser commented Nov 8, 2022

See commits for details.

@tklauser tklauser requested review from a team as code owners November 8, 2022 13:53
@tklauser tklauser requested review from aanm and removed request for a team November 8, 2022 13:53
@maintainer-s-little-helper maintainer-s-little-helper bot added the dont-merge/needs-release-note-label PR is blocked until the release note is set label Nov 8, 2022
@tklauser tklauser added the release-note/misc This PR makes changes that have no direct user impact. label Nov 8, 2022
@maintainer-s-little-helper maintainer-s-little-helper bot removed the dont-merge/needs-release-note-label PR is blocked until the release note is set label Nov 8, 2022
This fixes the following contextcheck linter error:

  Function `newIOReaderClient` should pass the context parameter (contextcheck)

Signed-off-by: Tobias Klauser <tobias@cilium.io>
Copy link
Member

@gandro gandro left a comment

Choose a reason for hiding this comment

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

Awesome, thank you for taking care of this!

@gandro
Copy link
Member

gandro commented Nov 8, 2022

Seems the linter is a bit more sensitive towards package doc comments? https://github.com/cilium/hubble/actions/runs/3420125081/jobs/5694532263

This will re-enable the contextcheck linter for Go ≥ 1.18.

Update Go compatibility for the gosimple linter to 1.19. This should
have been done in commit 0e85e38 ("Update Go to 1.19").

Remove the deadcode, structcheck and varcheck linters that have
been deprecated since golangci-lint v1.49.0.

Disable the revive linter warnings for missing package level godoc
comments.

Signed-off-by: Tobias Klauser <tobias@cilium.io>
Signed-off-by: Tobias Klauser <tobias@cilium.io>
@tklauser
Copy link
Member Author

tklauser commented Nov 8, 2022

Seems the linter is a bit more sensitive towards package doc comments? https://github.com/cilium/hubble/actions/runs/3420125081/jobs/5694532263

"Fixed" by ignoring the warning about missing package-level godocs for now. I'll send a followup PR to add all missing godoc comments.

@pchaigno pchaigno merged commit 4ce440b into master Nov 8, 2022
@pchaigno pchaigno deleted the pr/tklauser/update-go-1.19.3 branch November 8, 2022 21:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-note/misc This PR makes changes that have no direct user impact.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants