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

[rhcos-4.11] *: address golangci-lint lints #3269

Merged
merged 1 commit into from
Dec 7, 2022

Conversation

jlebon
Copy link
Member

@jlebon jlebon commented Dec 7, 2022

There's a lot going on here, but mostly a lot of error-checking added. Ignored errors in a few cases. Logged in a few others.

Deleted deprecated package golang.org/x/crypto/ssh/terminal in favour of golang.org/x/term.

Delete a bunch of unused variables.

(cherry picked from commit e3cbf04)

jlebon: I didn't backport the migration from
golang.org/x/crypto/ssh/terminal to golang.org/x/term to
keep it simple. The main thing I'm interested in is the improved
error-handling because we're hitting an issue right now in
rhcos/upgrade.go which I think would be helped by this.

There's a lot going on here, but mostly a lot of error-checking added.
Ignored errors in a few cases.  Logged in a few others.

Deleted deprecated package golang.org/x/crypto/ssh/terminal in favour of
golang.org/x/term.

Delete a bunch of unused variables.

(cherry picked from commit e3cbf04)

jlebon: I didn't backport the migration from
        `golang.org/x/crypto/ssh/terminal` to `golang.org/x/term` to
        keep it simple. The main thing I'm interested in is the improved
        error-handling because we're hitting an issue right now in
        `rhcos/upgrade.go` which I think would be helped by this.
Copy link
Member

@dustymabe dustymabe left a comment

Choose a reason for hiding this comment

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

LGTM

@jlebon jlebon merged commit a6b6608 into coreos:rhcos-4.11 Dec 7, 2022
@jlebon jlebon deleted the pr/rhcos-4.11-golangci-lint branch December 7, 2022 22:26
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

2 participants