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

Upgraded go and golangci-lint #963

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

Upgraded go and golangci-lint #963

wants to merge 2 commits into from

Conversation

cchen-vertica
Copy link
Collaborator

This PR upgrades GO to the latest version (1.23.2) for fixing vulnerabilities CVE-2022-30635, CVE-2024-34156, and CVE-2024-34158.

Go 1.23.2 requires golangci-lint to be version 1.60.0 or higher, so I upgraded golangci-lint to the latest version, 1.61.0.

@@ -172,7 +172,7 @@ func (s *StatusReconciler) calculateSubclusterStatus(ctx context.Context, sc *va
return err
}

for podIndex := int32(0); podIndex < int32(len(curStat.Detail)); podIndex++ {
for podIndex := int32(0); podIndex < int32(len(curStat.Detail)); podIndex++ { //nolint:gosec
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see many occurrences of //nolint:gosec. Why is that?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new version of golangci-lint has a more strict type check. The type conversion int32(xxx) will be reported by go lint.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants