From 66bda111916ecdfe93c7c60babfb73df4eb0ad27 Mon Sep 17 00:00:00 2001 From: Andrew Nesbitt Date: Thu, 29 Jan 2026 12:40:21 +0000 Subject: [PATCH 1/4] Upgrade to Go 1.25.6 --- go.mod | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go.mod b/go.mod index 07f6980..483dcdf 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,3 @@ module github.com/git-pkgs/vers -go 1.24.2 +go 1.25.6 From 73175ecf5c7642f5718d7588243570c20de9d7d4 Mon Sep 17 00:00:00 2001 From: Andrew Nesbitt Date: Thu, 29 Jan 2026 13:20:23 +0000 Subject: [PATCH 2/4] Update CI to Go 1.25 --- .github/workflows/ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fddd115..fe96f50 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - go-version: ['1.24'] + go-version: ['1.25'] steps: - uses: actions/checkout@v6 @@ -28,7 +28,7 @@ jobs: run: go test -v -race -coverprofile=coverage.out ./... - name: Upload coverage - if: matrix.go-version == '1.24' + if: matrix.go-version == '1.25' uses: codecov/codecov-action@v5 with: files: coverage.out @@ -42,7 +42,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v6 with: - go-version: '1.24' + go-version: '1.25' - name: golangci-lint uses: golangci/golangci-lint-action@v9 From 985e1b21d02781c5549dfda40776a00e1e19809d Mon Sep 17 00:00:00 2001 From: Andrew Nesbitt Date: Thu, 29 Jan 2026 13:31:44 +0000 Subject: [PATCH 3/4] Fix CI to checkout submodules for test data --- .github/workflows/ci.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fe96f50..296a8fe 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,6 +15,8 @@ jobs: steps: - uses: actions/checkout@v6 + with: + submodules: true - name: Set up Go uses: actions/setup-go@v6 @@ -38,6 +40,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v6 + with: + submodules: true - name: Set up Go uses: actions/setup-go@v6 From cca8bdc348c8e141e9fa5dbdb0d79dfc695d988e Mon Sep 17 00:00:00 2001 From: Andrew Nesbitt Date: Thu, 29 Jan 2026 13:33:49 +0000 Subject: [PATCH 4/4] Fix staticcheck lint warnings for type inference --- version.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/version.go b/version.go index 93a97e4..868cef6 100644 --- a/version.go +++ b/version.go @@ -721,8 +721,8 @@ func splitMavenVersionWithSeparators(s string) ([]string, []bool) { var afterDash []bool var current strings.Builder var lastWasDigit bool - var firstChar bool = true - var currentAfterDash bool = false // first component is never after dash + firstChar := true + currentAfterDash := false // first component is never after dash for _, c := range s { if c == '.' || c == '-' {