mirror of
https://github.com/kjanat/articulate-parser.git
synced 2026-08-05 20:04:06 +02:00
ci: pin modernize tool to gopls v0.21.x for Go 1.25 compatibility
The autofix workflow's `task modernize` step installed the modernize analyzer from gopls@latest, which as of v0.22.0 requires Go 1.26. The project targets Go 1.25 (go.mod) and CI runs with GOTOOLCHAIN=local, so the install failed. Pin to the v0.21.x line, which supports Go >= 1.25.
This commit is contained in:
+3
-1
@@ -266,7 +266,9 @@ tasks:
|
||||
silent: true
|
||||
aliases: [modern]
|
||||
cmds:
|
||||
- go run golang.org/x/tools/gopls/internal/analysis/modernize/cmd/modernize@latest -fix -test ./...
|
||||
# Pinned to the v0.21.x line: newer gopls (v0.22+) requires Go 1.26, but
|
||||
# this project targets Go 1.25 (see go.mod).
|
||||
- go run golang.org/x/tools/gopls/internal/analysis/modernize/cmd/modernize@v0.21.0 -fix -test ./...
|
||||
- echo "Code modernized"
|
||||
|
||||
# Dependency management
|
||||
|
||||
Reference in New Issue
Block a user