Skip to content
Myr

ci: update Go version support to 1.25+ across CI and docs (#4550)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

* ci: update Go version support to 1.25+ across CI and docs - Remove Go 1.24 from CI test matrix to only support 1.25 and 1.26 - Update documentation to require Go version 1.25 or above Signed-off-by: appleboy <appleboy.tw@gmail.com> * chore: increase required Go version for Gin to 1.25 - Update minimum required Go version for Gin from 1.24 to 1.25 - Revise related warning message and test expectations to match new version requirement Signed-off-by: appleboy <appleboy.tw@gmail.com> ---------

authored by Bo-Yi Wu · committed by GitHub · parent 38534e2 · Browse files · 4 files+5 added−5 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Trailers

  • Signed-off-by: appleboy <appleboy.tw@gmail.com>

Diff stats

4 files+5 added−5 removed

  • other:+5 added−5 removed

4 files+5 added−5 removed

modified:.github/workflows/gin.yml+1 added-1 removed
modified:debug_test.go+1 added-1 removed
119 unmodified lines
120 SetMode(DebugMode)121 debugPrintWARNINGDefault()122 SetMode(TestMode)123 })124 assert.Equal(t, "[GIN-debug] [WARNING] Now Gin requires Go 1.24+.\n\n[GIN-debug] [WARNING] Creating an Engine instance with the Logger and Recovery middleware already attached.\n\n", re)124 assert.Equal(t, "[GIN-debug] [WARNING] Now Gin requires Go 1.25+.\n\n[GIN-debug] [WARNING] Creating an Engine instance with the Logger and Recovery middleware already attached.\n\n", re)125}126127func TestDebugPrintWARNINGNew(t *testing.T) {128 re := captureOutput(t, func() {
52 unmodified lines
modified:debug.go+2 added-2 removed
11 unmodified lines
12 "strings"13 "sync/atomic"14)1516const ginSupportMinGoVer = 2416const ginSupportMinGoVer = 251718var runtimeVersion = runtime.Version()1920// IsDebugging returns true if the framework is running in debug mode.
58 unmodified lines
79}8081func debugPrintWARNINGDefault() {82 if v, e := getMinVer(runtimeVersion); e == nil && v < ginSupportMinGoVer {83 debugPrint(`[WARNING] Now Gin requires Go 1.24+.83 debugPrint(`[WARNING] Now Gin requires Go 1.25+.8485`)86 }87 debugPrint(`[WARNING] Creating an Engine instance with the Logger and Recovery middleware already attached.
27 unmodified lines
modified:README.md+1 added-1 removed
42 unmodified lines
43## Getting Started4445### Prerequisites4647- **Go version**: Gin requires [Go](https://go.dev/) version [1.24](https://go.dev/doc/devel/release#go1.24.0) or above47- **Go version**: Gin requires [Go](https://go.dev/) version [1.25](https://go.dev/doc/devel/release#go1.25.0) or above48- **Basic Go knowledge**: Familiarity with Go syntax and package management is helpful4950### Installation51
176 unmodified lines