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

github/workflows: remove golangci-lint-action step from static-analysis #17941

Merged

Conversation

ivanvc
Copy link
Member

@ivanvc ivanvc commented May 6, 2024

The golangci-lint-action step runs only on the repository's top-level directory. Then, make verify reruns it on the same directory, which is redundant.

However, to keep make verify target working, golangci-lint needs to be installed locally.

Fixes #17929

Please read https://github.com/etcd-io/etcd/blob/main/CONTRIBUTING.md#contribution-flow.

The golangci-lint-action step runs only on the repository's top-level
directory. Then, make verify reruns it on the same directory, which is
redundant.

However, to keep make verify target working, golangci-lint needs to be
installed locally.

Signed-off-by: Ivan Valdes <[email protected]>
@ivanvc
Copy link
Member Author

ivanvc commented May 6, 2024

The job still works, as shown in the job summary: https://github.com/etcd-io/etcd/actions/runs/8963530645/job/24613946859?pr=17941

/cc @jmhbnz

@k8s-ci-robot k8s-ci-robot requested a review from jmhbnz May 6, 2024 03:24
Copy link
Member

@jmhbnz jmhbnz left a comment

Choose a reason for hiding this comment

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

LGTM - Thanks @ivanvc

@jmhbnz jmhbnz merged commit b30a50d into etcd-io:main May 6, 2024
43 checks passed
@ivanvc ivanvc deleted the remove-golangci-step-from-static-analysis branch May 6, 2024 14:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

golangci-lint misconfiguration in GitHub actions
3 participants