Skip to content

Golangci-lint not fixed to specific version in CI #740

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

Closed
hslatman opened this issue Nov 12, 2021 · 5 comments · Fixed by #742
Closed

Golangci-lint not fixed to specific version in CI #740

hslatman opened this issue Nov 12, 2021 · 5 comments · Fixed by #742
Labels
bug needs triage Waiting for discussion / prioritization by team

Comments

@hslatman
Copy link
Member

hslatman commented Nov 12, 2021

Golangci-lint not fixed to specific version in CI

Despite the setting in https://github.com/smallstep/certificates/blob/master/.golangci.yml#L79, it seems that golangci-lint is always using the latest version in CI. This results in linting issues being reported not related to new code that's being worked on.

In #625 I've pinned the version to v1.41.0, which I'm using locally, and I had no new linting issues.

My proposal would be to update the linter version every once in a while, fixing all issues at that time. The hard thing is not forgetting to update it 😅 .

@hslatman hslatman added bug needs triage Waiting for discussion / prioritization by team labels Nov 12, 2021
@maraino
Copy link
Contributor

maraino commented Nov 12, 2021

Have you tried the latest, 1.43.0?

@maraino
Copy link
Contributor

maraino commented Nov 12, 2021

We're also removing the backward compatibility with Go 1.15, and supporting, for now, the last two releases of Go 1.16, and 1.17.

@hslatman
Copy link
Member Author

I did try 1.43.0. It resulted in some more issues. I think it's best to update it (every once in a while) as a chore in a separate PR.

Supporting only the latest two Go versions sounds good.

@dopey
Copy link
Contributor

dopey commented Nov 12, 2021

@hslatman totally agree. Let's get up to speed with the latest version (fix all the linter errors and remove go 1.15 testing/linting and pin go1.16 in the go.mod) and then pin golangci-lint in the actions. I regret not doing that before.

@hslatman
Copy link
Member Author

Will create a PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug needs triage Waiting for discussion / prioritization by team
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants