Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,12 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
go-version: ['1.24']
go-version: ['1.25']

steps:
- uses: actions/checkout@v6
with:
submodules: true

- name: Set up Go
uses: actions/setup-go@v6
Expand All @@ -28,7 +30,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
Expand All @@ -38,11 +40,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
submodules: true

- 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
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module github.com/git-pkgs/vers

go 1.24.2
go 1.25.6
4 changes: 2 additions & 2 deletions version.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 == '-' {
Expand Down
Loading