Skip to content

Fix the linter #262

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Conversation

juanluisvaladas
Copy link

@juanluisvaladas juanluisvaladas commented May 6, 2025

The linter has been broken for a few months now. This PR fixes it.

The linter now runs on a container so that it always gives consistent linting, it's an adaptation of how we do it on k0s.

I wanted to upgrade to golangci-lint 2 but I think this PR is already quite big so I'm splitting it into 2 PRs.

Golangci-lint <1.58.0 doesn't work because mdm, and >=1.58.0 have
several linter issues. I tried older versions of golang too but I
couldn't find a working combination. Lint has been broken for a while,
merge this as is and fix the linting issues in separate PR.

Signed-off-by: Juan-Luis de Sousa-Valadas Castaño <jvaladas@mirantis.com>
Signed-off-by: Juan-Luis de Sousa-Valadas Castaño <jvaladas@mirantis.com>
Signed-off-by: Juan-Luis de Sousa-Valadas Castaño <jvaladas@mirantis.com>
@juanluisvaladas juanluisvaladas marked this pull request as ready for review May 7, 2025 11:14
Signed-off-by: Juan-Luis de Sousa-Valadas Castaño <jvaladas@mirantis.com>
@juanluisvaladas juanluisvaladas added the bug Something isn't working label May 7, 2025
@juanluisvaladas juanluisvaladas changed the title Fix linter Fix the linter May 7, 2025
@juanluisvaladas
Copy link
Author

juanluisvaladas commented May 8, 2025

The failing steps of the CI are unrelated to this change and need to be fixed in a separate PR: #263

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant