From 0b6c434c03f9dd43a4fe91bea94ee5ce8dcbd01f Mon Sep 17 00:00:00 2001 From: RW Date: Wed, 13 Aug 2025 15:28:41 +0200 Subject: [PATCH] docs: require Go 1.25 for v3 --- .github/workflows/linter.yml | 2 +- .github/workflows/test.yml | 2 +- README.md | 2 +- cmd/internal/migrations/go_version_test.go | 6 +++--- cmd/internal/migrations/lists.go | 2 +- go.mod | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index 76d68a3..fbb7b5d 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -29,7 +29,7 @@ jobs: - uses: actions/setup-go@v5 with: # NOTE: Keep this in sync with the version from go.mod - go-version: "1.24.x" + go-version: "1.25.x" cache: false - name: golangci-lint diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 529f32e..ec56cbe 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -14,7 +14,7 @@ jobs: Build: strategy: matrix: - go-version: [1.24.x] + go-version: [1.25.x] platform: [ubuntu-latest, windows-latest, macos-latest, macos-13] runs-on: ${{ matrix.platform }} steps: diff --git a/README.md b/README.md index 2393514..0c00894 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ Fiber Command Line Interface ## Installation -Requires Go 1.24 or later. +Requires Go 1.25 or later. ```bash go install github.com/gofiber/cli/fiber@latest diff --git a/cmd/internal/migrations/go_version_test.go b/cmd/internal/migrations/go_version_test.go index 3684cd8..17869d8 100644 --- a/cmd/internal/migrations/go_version_test.go +++ b/cmd/internal/migrations/go_version_test.go @@ -46,12 +46,12 @@ require github.com/gofiber/fiber/v2 v2.0.0` var buf bytes.Buffer cmd := newCmd(&buf) - fn := migrations.MigrateGoVersion("1.23") + fn := migrations.MigrateGoVersion("1.25") require.NoError(t, fn(cmd, dir, nil, nil)) content := readFile(t, filepath.Join(dir, "go.mod")) - assert.Contains(t, content, "go 1.23") - assert.Contains(t, buf.String(), "1.23") + assert.Contains(t, content, "go 1.25") + assert.Contains(t, buf.String(), "1.25") vendorContent := readFile(t, filepath.Join(vendor, "go.mod")) assert.Contains(t, vendorContent, "go 1.10") diff --git a/cmd/internal/migrations/lists.go b/cmd/internal/migrations/lists.go index d65128c..500e97e 100644 --- a/cmd/internal/migrations/lists.go +++ b/cmd/internal/migrations/lists.go @@ -62,7 +62,7 @@ var Migrations = []Migration{ v3migrations.MigrateBasicauthConfig, v3migrations.MigrateBasicauthStorePassword, v3migrations.MigrateReqHeaderParser, - MigrateGoVersion("1.24"), + MigrateGoVersion("1.25"), }, }, } diff --git a/go.mod b/go.mod index 6c3fee4..bdd9393 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/gofiber/cli -go 1.24 +go 1.25 require ( github.com/Masterminds/semver/v3 v3.4.0