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

Use linter from makefile target in the build workflow #620

Merged
merged 1 commit into from
Nov 13, 2024

Conversation

eromanova
Copy link
Member

@eromanova eromanova commented Nov 11, 2024

By default, the golangci/golangci-lint-action uses the latest linter version (currently v1.62.0). With the linter of v1.62.0 version, the max-public-structs linter shows a false-positive result.

Currently, in our Makefile, we have the linter version pinned to v1.61.0. This PR ensures consistency by aligning the linter version in the GitHub Actions workflow with the version used in the Makefile (which is used locally).

Closes #624

Kshatrix
Kshatrix previously approved these changes Nov 11, 2024
@eromanova eromanova force-pushed the linter-version branch 2 times, most recently from 63327e3 to 0e64f26 Compare November 11, 2024 11:56
@eromanova eromanova marked this pull request as draft November 11, 2024 11:57
@eromanova eromanova force-pushed the linter-version branch 5 times, most recently from 48ca784 to 318cfb1 Compare November 11, 2024 12:23
@eromanova eromanova marked this pull request as ready for review November 11, 2024 12:31
By default, the linter uses the latest version (currently v1.62.0).
In v1.62.0, a new max-public-structs linter was added. Significant
changes are required in our codebase to enable this linter.
@eromanova eromanova changed the title Pin linter version to v1.61.0 in the build workflow Use linter from makefile target in the build workflow Nov 11, 2024
@eromanova eromanova self-assigned this Nov 12, 2024
@wahabmk
Copy link
Contributor

wahabmk commented Nov 13, 2024

I disabled the max-public-structs rule in #632 as I think it was giving false errors.

@eromanova
Copy link
Member Author

mgechev/revive#1103 related issue.

@Kshatrix Kshatrix merged commit 5c28be7 into Mirantis:main Nov 13, 2024
4 of 5 checks passed
@eromanova eromanova deleted the linter-version branch November 21, 2024 13:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Golangci-lint version mismatch between Makefile and Github Build action
3 participants