Skip to content

build: Upgrade golangci-lint to v2.9.0#439

Open
gyliu513 wants to merge 1 commit intollm-d:mainfrom
gyliu513:fix-lint-upgrade
Open

build: Upgrade golangci-lint to v2.9.0#439
gyliu513 wants to merge 1 commit intollm-d:mainfrom
gyliu513:fix-lint-upgrade

Conversation

@gyliu513
Copy link
Copy Markdown
Contributor

@gyliu513 gyliu513 commented Mar 20, 2026

Fixed #459

The string(rune('0'+id)) pattern triggers gosec G115 (integer overflow conversion int -> rune) which is a real finding — it silently produces wrong characters for id >= 10. Using fmt.Sprintf fixes the bug and satisfies the linter.

This is also trying to make the ci lint using same version as gateway-api-inference-extension https://github.com/kubernetes-sigs/gateway-api-inference-extension/blob/main/Makefile#L552

Signed-off-by: Guangya Liu <gyliu513@gmail.com>
@gyliu513 gyliu513 changed the title build: Upgrade golangci-lint to v2.9.0 and fix lint issues build: Upgrade golangci-lint to v2.9.0 Mar 20, 2026
@gyliu513 gyliu513 mentioned this pull request Mar 28, 2026
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.

Share same lint version for kv cache and GIE

1 participant