-
Notifications
You must be signed in to change notification settings - Fork 24
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
make check
updates to cope with oldest stable version go1.22
#345
make check
updates to cope with oldest stable version go1.22
#345
Conversation
80aa8ff
to
ebf80e5
Compare
golangci-lint
and gosec
versions
golangci-lint
and gosec
versionsmake check
updates to cope with oldest stable version go1.22
- The linter 'exportloopref' is deprecated (since v1.60.2) due to: Since Go1.22 (loopvar) this linter is no longer relevant. Replaced by copyloopvar. - The linter named \"megacheck\" is deprecated. It has been split into: gosimple, staticcheck, unused. - The configuration option `linters.govet.check-shadowing` is deprecated. Please enable `shadow` instead, if you are not using `enable-all`. Also fixes all occurrence of "Error: printf: non-constant format string in call to fmt.Errorf (govet)" error. Signed-off-by: Anoop C S <[email protected]>
Updating gosec to avoid the panic raised with go1.22. Signed-off-by: Anoop C S <[email protected]>
go1.23 is now available making go1.22 the oldest supported release. We should now update the Dockerfile accordingly to make go-version-check.sh happy. Signed-off-by: Anoop C S <[email protected]>
cfd57a6
to
2f5f089
Compare
Added the new/replaced linter
|
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.
lgtm
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.
lgtm. sorry for the delay in review this slipped past my radar
go1.23 has been released which demands updates to various components.
golangci-lint
make check
#344 which should be fixed with latest golangci-lint versions.linters.govet.check-shadowing
is deprecated. Please enableshadow
instead, if you are not usingenable-all
.govet
happy.gosec
We happened to observe the panic from the linked issue #344 which should be fixed with latest gosec versions.
go-version-check.sh
Update Dockerfile to reflect the oldest stable version go1.22 so as to pass
make check-dockerfile-go-version
.fixes #344