ITADN

`golangci-lint` v1.63.4 failed to load config with Go 1.24

#462Closedrudeigerc 创建于 2025-06-17
bugneeds-priorityneeds-triage
R
rudeigerccommented
<!-- Please use this template while reporting a bug and provide as much info as possible. Not doing so may result in your bug not being addressed in a timely manner. Thanks! --> **What happened**: `golangci-lint` failed to load the config since `golangci-lint@v1.63.4` was built with Go 1.23. Upstream issue: golangci/golangci-lint#4837, golangci/golangci-lint#4909 **What you expected to happen**: `golangci-lint` works well. **How to reproduce it (as minimally and precisely as possible)**: With `bin/golangci-lint` not existing: ```bash $ make lint-fix golangci/golangci-lint info checking GitHub for tag 'v1.63.4' golangci/golangci-lint info found version: 1.63.4 for v1.63.4/darwin/arm64 golangci/golangci-lint info installed /Users/rudeigerc/Developer/llmaz/bin/golangci-lint /Users/rudeigerc/Developer/llmaz/bin/golangci-lint run --fix Error: can't load config: the Go language version (go1.23) used to build golangci-lint is lower than the targeted Go version (1.24.4) Failed executing command with error: can't load config: the Go language version (go1.23) used to build golangci-lint is lower than the targeted Go version (1.24.4) make: *** [lint-fix] Error 3 ``` **Anything else we need to know?**: I have tried the latest version of v1 (v1.64.8) and it works well, so we can simply update the version defined in `Makefile`. By the way, do we have any plan to upgrade `golangci-lint` to v2 since it provides more linter ecosystem and performance enhancement? **Environment**: - Kubernetes version (use `kubectl version`): - llmaz version (use `git describe --tags --dirty --always`): - Cloud provider or hardware configuration: - OS (e.g: `cat /etc/os-release`): - Kernel (e.g. `uname -a`): - Install tools: - Others:
关闭于 2025-06-19 3 条评论