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 golangci-lint #227

Merged
merged 1 commit into from
Dec 14, 2022
Merged

Update golangci-lint #227

merged 1 commit into from
Dec 14, 2022

Conversation

mariomac
Copy link
Contributor

We can't update prow to 1.18 because golangci-lint is in an old version and can't recognize the newer format of some modules:

openshift/release#34809
https://prow.ci.openshift.org/view/gs/origin-ci-test/pr-logs/pull/openshift_release/34809/rehearse-34809-pull-ci-netobserv-goflow2-kube-enricher-main-lint/1603049581493358592

We need first to update golangci-lint here and in release-4.12 to unlock the situation

@openshift-ci
Copy link

openshift-ci bot commented Dec 14, 2022

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please ask for approval from mariomac by writing /assign @mariomac in a comment. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

- errcheck
- errorlint
- cyclop
- errname
- exhaustive
- exportloopref
- gocritic
- goimports
- gofmt
Copy link
Contributor Author

Choose a reason for hiding this comment

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

goimports complains with the generated sources. Will see if we can revert this change in a later version.

@@ -1,27 +1,24 @@
linters:
enable:
- deadcode
Copy link
Contributor Author

Choose a reason for hiding this comment

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

deadcode, structcheck and varcheck linters are warned as removed by the linter, so I removed them from here.

@openshift-ci
Copy link

openshift-ci bot commented Dec 14, 2022

@mariomac: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/ci 283a845 link true /test ci

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@openshift-ci openshift-ci bot added the lgtm label Dec 14, 2022
@mariomac mariomac merged commit 6730962 into netobserv:main Dec 14, 2022
@mariomac
Copy link
Contributor Author

Merged without passing tests because there is a deadlock: Prow needs to be updated to Go 1.18 but can't be updated if we don't fix linting here.

@mariomac mariomac deleted the golangci branch December 14, 2022 16:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants