-
Notifications
You must be signed in to change notification settings - Fork 156
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 to v1.55, fix lint errors #2539
Conversation
Currently golangci-lint is built with go version older than the go1.21 This can cause weird linter false-positives (e.g. https://github.com/kanisterio/kanister/actions/runs/7202258335/job/19620056020) Updated version of golangci-lint in the build image Fixed linter warnings: - deprecated rand.Seed - non-sensical return in setupKopiaRepositoryServer
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1: LG 👍
See nit comment.
) | ||
|
||
const characters = "abcdefghijklmnopqrstuvwxyz0123456789" | ||
|
||
func init() { | ||
rand.Seed(time.Now().UnixNano()) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
delete the init()
function altogether, since it is empty.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@hairyhum Please address this comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To be addressed in #2566
Hi @hairyhum , |
Change Overview
Currently golangci-lint is built with go version older than the go1.21 This can cause weird linter false-positives (e.g. https://github.com/kanisterio/kanister/actions/runs/7202258335/job/19620056020)
Updated version of golangci-lint in the build image Fixed linter warnings:
Pull request type
Please check the type of change your PR introduces:
Issues
Test Plan