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 linter, fix new warnings. #3884

Merged
merged 1 commit into from
Apr 10, 2024
Merged

Conversation

larvacea
Copy link
Member

@larvacea larvacea commented Apr 10, 2024

Description of changes:

Update golangci-lint-action from v3 to v4, update .golangci.yaml for the new version of golangci-lint, and fix the three unused-parameter lints it finds in host-ctr.

Dependabot opened a PR for the upgrade from v3 to v4 on February 12 (#3773). This failed CI because the new lint failed host-ctr.

Testing done:

Manual golangci-lint on the directories currently in our golangci-lint workflow. This pull request should trigger an automatic run of that workflow, which should pass if my manual testing reproduced its steps correctly.

Terms of contribution:

By submitting this pull request, I agree that this contribution is dual-licensed under the terms of both the Apache License, version 2.0, and the MIT license.

@larvacea larvacea self-assigned this Apr 10, 2024
Copy link
Member

@jpculp jpculp left a comment

Choose a reason for hiding this comment

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

Should we bump actions/setup-go@v3 to v5 while we're at it? (resolves #3669)

Update setup-go from v3 to v5, and golangci-lint-action from v3 to v4.
Update .golangci.yaml for the new version of golangci-lint, and fix the
three unused-parameter lints it finds in host-ctr.
@larvacea
Copy link
Member Author

Yes, we should bump actions/setup-go to v5. Done.

Copy link
Contributor

@bcressey bcressey left a comment

Choose a reason for hiding this comment

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

nit: by convention we usually prefix a commit with a "subsystem" ID, so the commit subject could instead be:

build: update Go linter, fix new warnings

@larvacea larvacea merged commit 507c21f into bottlerocket-os:develop Apr 10, 2024
36 checks passed
@larvacea larvacea deleted the go-lint branch April 10, 2024 22:49
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