Skip to content

Commit ae3f524

Browse files
authored
ci: update Go version support to 1.25+ across CI and docs (#4550)
* 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> --------- Signed-off-by: appleboy <appleboy.tw@gmail.com>
1 parent 38534e2 commit ae3f524

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

.github/workflows/gin.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
strategy:
3434
matrix:
3535
os: [ubuntu-latest, macos-latest]
36-
go: ["1.24", "1.25", "1.26"]
36+
go: ["1.25", "1.26"]
3737
test-tags:
3838
[
3939
"",

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Gin combines the simplicity of Express.js-style routing with Go's performance ch
4444

4545
### Prerequisites
4646

47-
- **Go version**: Gin requires [Go](https://go.dev/) version [1.24](https://go.dev/doc/devel/release#go1.24.0) or above
47+
- **Go version**: Gin requires [Go](https://go.dev/) version [1.25](https://go.dev/doc/devel/release#go1.25.0) or above
4848
- **Basic Go knowledge**: Familiarity with Go syntax and package management is helpful
4949

5050
### Installation

debug.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313
"sync/atomic"
1414
)
1515

16-
const ginSupportMinGoVer = 24
16+
const ginSupportMinGoVer = 25
1717

1818
var runtimeVersion = runtime.Version()
1919

@@ -80,7 +80,7 @@ func getMinVer(v string) (uint64, error) {
8080

8181
func debugPrintWARNINGDefault() {
8282
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+.
8484
8585
`)
8686
}

debug_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ func TestDebugPrintWARNINGDefaultWithUnsupportedVersion(t *testing.T) {
121121
debugPrintWARNINGDefault()
122122
SetMode(TestMode)
123123
})
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)
125125
}
126126

127127
func TestDebugPrintWARNINGNew(t *testing.T) {

0 commit comments

Comments
 (0)